How Segment the board in the red line of the picture?

image 1
This 3D image was constructed by a series of dicom file. Now I want to segment the content in the red closed line. how to DO!!!

image 2

This is one of the series study of the dicom files.

For segmenting the second case, using Objectness filter with emphasis on plate-like structures should help, perhaps even make it easy.

It is hard to infer 3D structure in image 1, so I can’t help with that.

1 Like

Maybe you could use the red line to generate a distance function. That would tell you want was inside vs outside.


Sorry,the red line was drawn by me, I mean how to segment the withe line closed by the red line.

Sorry,I can not use the " Objectness filter", can you give me an example!, and the red line was drawn by me, I mean how to segment the withe line closed by the red line.

You can find some examples in the IJ article. Direct download.

This example focuses on vesselness, but by changing parameters of objectnessFilter you can get sheetness enhancement.

If there is a threshold value that separates the scanned object from the table then the operation is trivial:

  1. Threshold to create segmentation
  2. Keep largest island in the segmentation (this discards the table, which is thin, so its volume is smaller than the scanned object) - you might need to use more sophisticated property to find the island corresponding to the object of interest (such as objectness filter that @dzenanz recommended above), but in most cases keeping the island with the largest volume should be enough
  3. Solidify the segment
  4. Mask volume using the segment (blank out voxels outside the segment)

These steps can all be performed in 3D Slicer’s Segment Editor (using ITK and VTK internally) but can be also automated very easily. See a complete, fully automatic implementation in Python (need to be run in 3D Slicer’s Python interpreter) here.

Original image:

After automatic table removal: