[Insight-users] Regarding Watershedsegmentation2.cxx error

Luis Ibanez luis.ibanez at kitware.com
Fri Apr 17 14:54:12 EDT 2009



Hi Rama,


1) Watersheds segmentation method do not produce a simple mask around
    an object. Instead they partition the entire image.

    It is up to you to select any of the individual partitions and
    to perhaps combine different pieces from different water levels.


2) The images that you posted look like decent segmentations of the
    Eye structures. Again, it is up to you to pick specific pieces.
    For example, you could select the eye muscles, or the lens, or
    bone structures...


3) The exception error that you are getting is due to the fact
    that this .cxx file expects a 3D image as input, and you are
    providing a 2D image instead.

    Please use a 3D image as input.


4) Describing the theory behind the Watershed filters is beyond
    the scope of this mailing list. You may want to search on
    the literature. For example, Serra's book:
    "Image Analysis and Mathematical Morphology"

    The very basic principles are described in the ITK Software Guide
    http://www.itk.org/ItkSoftwareGuide.pdf



   Regards,


      Luis



--------------------------
Rama Chandra Rao M wrote:
> Hi Luis,
>  
> Thanks for your kind response.
>  
> Below listed are the three points to be guided by you,
>  
> Please confirm soon.
>  
> 1) Here with I did not get what you are asking abt the below question.
>    As per me I have used VisibleWomenEyeSlice.png file to segment using 
> Watershedsegmentation1.cxx file .
>  
>  
> What *specific* anatomical structure are you trying to segment ?
>  
>  
>  
> 2)  Watershedsegmentation2.cxx error is as listed below please guide us 
> to rectify it.
>  
> An Exception is caught how to handle it.
>  
> c:\ITK\Insight_BIN\bin\debug>WatershedSegmentation2 
> VisibleWomanEyeSlice.png W2op.png 0 0.05
> Exception caught !
> itk::ExceptionObject (0130F2F4)
> Location: "void __thiscall itk::RecursiveSeparableImageFilter<class 
> itk::Image<f
> loat,3>,class itk::Image<float,3> >::BeforeThreadedGenerateData(void)"
> File: c:\itk\insight\code\basicfilters\itkRecursiveSeparableImageFilter.txx
> Line: 283
> Description: itk::ERROR: RecursiveGaussianImageFilter(017E3C30): The 
> number of pixels along direction 2 is less than 4. This filter requires 
> a minimum of four pixels along the dimension to be processed.
>  
>  
> 3) Also guide us how to know theoratical concepts of watershed segmentaion.
>  
> With regards,
>  
> Thanks,
>  
> Rama Chandra Rao.M


More information about the Insight-users mailing list