[Insight-users] Watershed Segmentation of 3D RGB Image

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Mon Jan 3 11:26:16 EST 2005


I tried watershed segmentation on my 3D RGB image and I got a segfault.
Is this supported?  I figure I might as well ask before I beat myself up
too much.  I'm using the CVS version of ITK and I made the following
changes to the example.

[khobbs at biowulf stomach_sections]$ diff
~/kitware/Insight/Examples/Segmentation/WatershedSegmentation1.cxx
WatershedSegmentation1.cxx
81c81
<   typedef itk::Image<RGBPixelType, 2>    RGBImageType;
---
>   typedef itk::Image<RGBPixelType, 3>    RGBImageType;
83,85c83,85
<   typedef itk::Image<VectorPixelType, 2> VectorImageType;
<   typedef itk::Image<unsigned long, 2>   LabeledImageType;
<   typedef itk::Image<float, 2>           ScalarImageType;
---
>   typedef itk::Image<VectorPixelType, 3> VectorImageType;
>   typedef itk::Image<unsigned long, 3>   LabeledImageType;
>   typedef itk::Image<float, 3>           ScalarImageType;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050103/a6053426/attachment.pgp


More information about the Insight-users mailing list