OpenCV Mesh Class for python

asked 2020-02-24 05:44:23 -0600

I found that there's a class mesh in OpenCV but in c++, is it available for python language?

OpenCV Mesh

in general, if this may let you help me! I'm trying to extract local descriptors and apply a matching between 3d Models( mesh)

I appreciate any help, even if it's using any other libraries than OpenCV, for sure using python.

edit retag flag offensive close merge delete

Comments

that's an internal class from the (vtk based) viz module. it can read existing ply/obj files, but it cannot generate polygons from points (if that's what you wanted)

and no, not available for python.

I'm trying to extract local descriptors and apply a matching between 3d Models( mesh)

please explain in more detail, what you want to do here.

berak gravatar imageberak ( 2020-02-24 06:37:42 -0600 )edit

what I want to do is simply like what I mentioned... shape matching using descriptors I have mesh I would like to extract descriptors from it (like shape index descriptor,Fourier transform,Zernike moments, etc...) the idea is that OpenCV deals with images and extract these descriptors, while in my case I have 3d models I want to deal with... that's all of it. I hope I was able to explain well and make the concept clear.. any more details needed I'll be happy to clarify. Thank you

Roaa Soloh gravatar imageRoaa Soloh ( 2020-02-25 02:29:12 -0600 )edit

what I want to do is simply like what I mentioned.

unfortunately, there is nothing simple here.

please be clear about what kind of data you have -- 2d images of 3d things ? point clouds ? and the exact purpose of it ? is it registration ? in which coord system ?

berak gravatar imageberak ( 2020-02-25 02:38:07 -0600 )edit

I'm sorry. I mentioned Sir, I have 3d mesh(3d vertices and faces), also I mentioned that my purpose is to make shape matching (match the obtained descriptors)... descriptors that I'm obtaining are feature vectors. Mesh1,Mesh2(is rotated,or scaled,or transformed Mesh1) I have for each ip1,ip2 (interest points) and for each "ip" I obtained the descriptors so if I have for example 400 interest points, I have a vector with 400 values, that represent the descriptors for these points: [2 4 15 18 90 ...] these are "ip1" and d1 = [0.3 0.002 0.0 1 0.543 ....] where 0.3 is, for example, the mean curvature of interest point (2) and so on.

Roaa Soloh gravatar imageRoaa Soloh ( 2020-02-25 02:39:34 -0600 )edit