如何获取 3d 维数组并将其转换为模型? [英] How do I take a 3d dimensional array and convert it into a model?

查看:35
本文介绍了如何获取 3d 维数组并将其转换为模型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Open CV,我可以使用我的代码从图像中提取多维数据,但有什么简单的方法可以显示它?我有一个 3D 数组:

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?

比如这个伪代码:

display_3d(x,y,z,angle)

非常感谢任何帮助.我也在使用 C++.

Any help is highly appreciated. Also I'm using C++.

推荐答案

首先你需要找到凸包 你的点,这意味着找到一组点的非歧义和有效的表示.一旦你这样做了,你需要对你的网格进行三角测量,通常使用delaunay三角测量一>.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.

这篇关于如何获取 3d 维数组并将其转换为模型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆