Draw segment contour with attracted to edges

One more question :grin:, is it possible to make the drawing attracted to the edge while drawing (something like LeveltracingEffect)?

1 Like

If there are actual edges (intensity differences) then you don’t want to segment slice-by-slice. In that case, use the Grow from seeds effect. It allows you to just approximately segment on a couple of slices and you automatically get a full 3D segmentation. You can always make adjustments (by adding a few more strokes) if you don’t like the automatic segmentation results at some places.

2 Likes

Sometimes the edges are clear but the inside region is not. So drawing this way is a good idea.

Grow from seeds fills inside the region correctly, even if inside and outside has the same intensity.

You may also try Watershed effect, it also correctly fills in less dense parts inside bones. You need to install SegmentEditorExtraEffects extension and it will show up in Segment Editor.

1 Like

Thanks a lot, I will try this soon.

Either I am doing it wrong or the tools are not suitable for this task. Have you tried to segment a CT image of the human spine?
I am trying to segment a single separatley but so far only tools worked for me are the paint and the draw as there is always touching area between the vertebrae.
BTW, it would be nice if the tools developers provide a tutorial as a demo video with sample data to use the tool efficiently.

Have a wonderful day!
Ibraheem

Yes, we often segment spine CTs. Depending on image quality and the accuracy you need, it may be tedious, but these semi-automated tool help. We are in the process of creating a video tutorial series, expected to release the first one in a few weeks.

Until then, a few tips:

  • Always start with cropping your volume to the region of interest (if your volume is larger than needed, all processing will be slower) and resampling your volume to have an isotropic voxels size (otherwise you may not be able to have a smooth and detailed segmentation). For this, use Crop volume module: specify your ROI (as small as possible), select Isotropic spacing, select sufficiently low spacing scale value (the lower the value, the more details you can preserve during segmentation, but more memory and processing time you will need; typically 0.5 … 0.8 work well, but you may go down to 0.2 or keep the original 1.0), select bspline interpolator.
  • If you use Grow from seeds or Watershed, after you have the initial segmentation (“Initialize”), you need to keep painting more small strokes where the segmentation is not correct. The full segmentation is automatically recomputed based on the additional inputs within a few seconds. Repeat this, until you have a good enough segmentation.
  • You can create initial bone seeds by Thresholding with a high value and shrink it a bit using Margin effect (it is very important to not paint seeds into an incorrect area; incomplete seed is not a problem at all)
2 Likes