Volume rendering shows a solid box

Hi everyone,

As a beginner of this excellent software, Could anyone teach me how to get the surface of the border, which is the line between white and black region?
NEWCapture

Hi Gary,

Thanks for reaching out.

for sake of completness, here are the two other comment you posted in an identical post:

  • I am trying to find the volume rendering of 2d pictures. After click the volume rendering button, it shows me a black solid box, which is not what I want.

  • The goal is to find the surface between black and white region of the picture. Could anyone give me some tips or instructions?

Ps: Generally speaking we try to avoid asking the same question multiple time with a difference title, if needed, you should be able to edit the title of your post.

You could use the Segment Editor to threshold your image and erase the wanted region, then you could use the Segment Statistics module to get information like the number of voxel. From there, you should be able to compute the surface using metatdata specific to your image (or “picture”)

Sorry about posting same questions multiple times and Thanks for your reply.

The goal is to get the lines between white region and black region, and these lines will form a surface without the black and white region.

Here is what I did, I used the threshold to mark the white region, and use Islands to remove the white part. How could I remove the black region and obtain the boundary surface.

The main problem is that all volume rendering presets assume that background is darker than the object that you would like to see. In your case, the object is dark and background box is bright, therefore you’ll only see a solid box.

The simplest is probably to invert your image by using SimpleFilters module: Filter = ShiftScaleImageFilter, Scale = -1.

If you don’t want to change your input image then you need to adjust volume rendering transfer functions to make bright values transparent. Something like this should work:

image

I’ve added an “inverted” volume rendering preset, CT-Air, which will be available in nightly builds that you download tomorrow or later. If you choose this preset and adjust “Shift” slider then dark structures should show up in the 3D view.

1 Like

Thanks for your patient and reply Andras.I tried it on my computer, and it works now!!!

By the way, Do we have mesh in 3D slicer? Because I would like to collect data of every point on the surface.

Thanks for your help again, I do really appreciate it.

Yes. Post a new topic about what you would like to have exactly.

Would you mind posting a screenshot of the end result?

Thanks for your patient and reply Andras.I tried it on my computer, it works now.
By the way, Do we have mesh in 3D slicer? Because I would like to collect data of every point on the surface.

Yes. Post a new topic about what you would like to have exactly.

Here is what I got from 3D Slicer.
By the way, could I do surface mesh rather than volume mesh on this software, and export them as .stl file.
Because I would like to use and analyze the surface mesh data.ICapture

Yes, image segmentation is one of the major features that have seen a lot of improvements lately, see
https://www.slicer.org/wiki/Documentation/Nightly/Training#Slicer4_Image_Segmentation

Thanks for your reply, could you give me a hint about how to do the surface mesh on 3D slicer?

Once your segmentation is completed, the easiest way to export a surface mesh file is to use Export to files function in Segment Editor module.

Thanks for your reply Andras,

After I change the brighter setting, which only show the black region rather than the white region, could I directly do the surface triangle mesh and export the files as .stl file?

If I can export the files as .stl format, will the data only contain the black region, or both white and black region?

If you need only an STL file then you don’t need volume rendering. You can use Segment Editor module’s Threshold effect to create a segment, click Show 3D to verify how the mesh looks in 3D, and save as STL using Export to files feature.

2 Likes

Thanks for your help Andras, I finished the first step, your suggestions are really helpful!!

By the way, is there any way to remove the outside surface(connected), to get the volume as the file attached?

There should be two holes on the top of the heart, and I want to remove the surface parts that are connected to those two holes.

Andras Lasso slicer@discoursemail.com 于2018年10月20日周六 下午11:24写道: