I am curious if Mathematica could do reconstruction of a 2D SEM image into a 3D. It is the same what can be done by MountainsMap SEM software (http://www.digitalsurf.fr/en/mntsem.html)
Visually it looks like this:
I would appreciate any advice on this.
__
Update 1:
I am sorry that I wasn't specific with the procedure. The way I see implementation for such reconstruction of an SEM image is through the following steps:
- Turn the SEM image into a matrix with values from 0 to 255 (my image has 8-bit depth).
- Make a 3D plot where vertical axis corresponds to the values in the matrix.
__
Update 2:
I tried to follow Eisbär and MarcoB's suggestion with ListPlot3D. I cropped a part of the SEM image from above and applied ListPlot3D. Here is what I got:
ListPlot3D[ImageData@ColorConvert[image1, "Grayscale"],
ColorFunction -> "Rainbow", Mesh -> None, Boxed -> False,
BoxRatios -> {1, 1, 0.05}, PlotRange -> All]
It looks like a nice illusion of 3D reconstruction, but as MarcoB pointed out, this approach doesn't work. If anyone has suggestion for a better approach, please let me know.
In addition, here is the reconstruction result for the SEM image that is used as example by MountainsMap.







ListPlot3D. – Eisbär Jan 27 '17 at 07:49ListPlot3D[ImageData@ColorConvert[img, "Grayscale"], ColorFunction -> "SouthwestColors", Mesh -> None, Boxed -> False, Axes -> False], but that produces a "spiky" surface that may not be what you want yet. – MarcoB Jan 27 '17 at 18:48ReliefImage[]? – J. M.'s missing motivation Jan 27 '17 at 19:36