Ask Your Question

3d reconstruction

asked 2019-02-21 10:21:01 -0500

harfbuzz gravatar image

I am looking for openCV functions that can reconstruct series of grayscale 2D-images of a porous materials to a 3D representation.

edit retag flag offensive close merge delete


there is no opencv function for reconstruction of three-dimensional porous media

LBerger gravatar imageLBerger ( 2019-02-21 10:30:25 -0500 )edit

You're looking for something like Marching Cubes?

sjhalayka gravatar imagesjhalayka ( 2019-02-21 11:59:18 -0500 )edit

may be the 3d reconstruction is not within the scope of the opencv processing

harfbuzz gravatar imageharfbuzz ( 2019-02-26 05:08:54 -0500 )edit

@harfbuzz -- I'm willing to help you out. Place your images on a site like GitHub and let me know.

sjhalayka gravatar imagesjhalayka ( 2019-02-26 05:29:39 -0500 )edit

@harfbuzz There is sfm module for 3d reconstruction in opencv but I think your question is off topics because it is not really image processing (I think it is in topic material science). Now if @sjhalayka wants to help you there is no problem.

LBerger gravatar imageLBerger ( 2019-02-26 06:58:59 -0500 )edit

adding a (few) example image(s) might be helpful

berak gravatar imageberak ( 2019-02-26 12:37:36 -0500 )edit


I'm sorry for my late reply. I just connected to the opencv website. Thank you very much for your help.

harfbuzz gravatar imageharfbuzz ( 2019-04-26 08:51:32 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-02-26 12:06:51 -0500

sjhalayka gravatar image

updated 2019-02-28 10:11:49 -0500

I put up a solution to your question at

It converts a series of PNG slices like this:

image description

... into an STL mesh like this:

image description

edit flag offensive delete link more



@harfbuzz -- I voted up your topic so that you have enough karma points to mark my answer as correct and upvote my answer. Please provide reciprocation.

sjhalayka gravatar imagesjhalayka ( 2019-02-26 19:13:30 -0500 )edit

finally -- a decent place to sell marcing-cubes to the public , hehe ;)

berak gravatar imageberak ( 2019-02-27 02:33:34 -0500 )edit

@berak -- This is not the first time people have asked about 3D "contours". I wonder if Marching Cubes has a place in the OpenCV library?

sjhalayka gravatar imagesjhalayka ( 2019-02-27 11:19:51 -0500 )edit

@berak -- Do you like physics? Check out my latest (crackpot) paper:

sjhalayka gravatar imagesjhalayka ( 2019-02-27 11:29:02 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-02-21 10:21:01 -0500

Seen: 283 times

Last updated: Apr 26 '19