how to generate 3d meshes for an image in opencv? [closed]
After importing an image, i want to generate 3d meshes for that image. How can i do it?
After importing an image, i want to generate 3d meshes for that image. How can i do it?
Asked: 2018-11-02 00:57:23 -0600
Seen: 1,419 times
Last updated: Nov 02 '18
oh, that's easy. you just have to implement this
is it possible to get the source code of your sir? it would be very helpful for me .
sure that would be helpful for you ;)
(no, i don't have any code for that. and i'm only "pulling your leg" here.)
(if you don't have any skills or even did any proper research -- YOU can't do it.)
What do you mean a 3D mesh for an image? Like a hilly terrain where height is proportional to input pixel intensity? Sounds kind of interesting. email me at [email protected] if you want to explain the problem to me.
@sjhalayka -- you'll for sure like the paper mentioned in the 1st link !
(it's also using marching cubes as a baseline for comparison ;)
I see that now. I only browsed the abstract until now. That looks crazy! They do such a great job.
Also, Paul Bourke has a Marching Cubes page:
http://paulbourke.net/geometry/polygo...
That page is where I learned about Marching Cubes. It also has a C implementation.
You could use p5 or Pixi.
example: https://codepen.io/kpachinger/pen/dgeQMW
@kpachinger, -- the main problem with this question was:
am i wrong, or does your (nice) codepen only make a deformable 2d grid ? (looks like 2d "voxels" to me)
It is deformable 2d. The effect of the presentation resembles 3d cloth. It was largely taken from the solution in the details. But also, Pixi could be used to add a depth map and light source, or you could add a z to the point properties and go from there.