我使用的是开放式的简历,我能提取多维数据和图像与我的codeS,但是这将是一个简单的方法来显示呢?我有一个三维数组:
I'm using Open CV and I'm able to extract multidimensional data from and image with my codes but what would be an easy way to display it? I have a 3D array:
line start [x] [y] [z]
line end [x] [y] [z]
任何在字里行间将填充了坚实的平面上。
Anything in between the lines will be filled with a solid flat surface.
有一些样的功能,我可以用它来轻松地显示给这些点或任何其它点我缺少一个3D图像?
Is there some kind of function I can use to easily display a 3d image given these points or whatever other points I'm missing?
比如这个伪code:
display_3d(x,y,z,angle)
任何帮助是非常AP preciated。另外我使用C ++。
Any help is highly appreciated. Also I'm using C++.
首先,你需要找到凸包贵点这意味着寻找无歧义的,高效的再$ P $点集合的psentation。一旦你这样做,你的将会的需要三角的网格,通常使用德劳内三角。 QHull 提供了这样的功能。
First you need to find the convex hull of your points which means finding non-ambiguous and efficient representation of a set of points. Once you do that you will need to triangulate your mesh, usually using delaunay triangulation. QHull provides such functionality.