[Insight-users] Watershed Segmentation - problem running itkWSRawToPNG.cxx

Joshua Cates cates at sci.utah.edu
Mon, 23 Feb 2004 13:32:44 -0700 (MST)


Hi,

Thanks for the feedback on the watershed example.  This code is old and 
probably in need of updating for more recent developments in the ITK IO 
classes.  I will take a look.

Josh.

On Mon, 23 Feb 2004, neha k wrote:

> 
> Hi All,
> 
> I am trying to run exampleI programs in Watershed segmetnation. I tried
> the example program with Input file as PGM file (in.pgm) which is of
> size (24*7). When I run itkWatershedSegmentationExample.cxx, I get 5
> output files of raw format (with level = 0.50).  When I set any of those
> 5 output files as an input file to second program itkWSRawToPNG.cxx so
> that I can convert it to png file to view, program crashes( on statement
> reader_update()). What should be the input file given to this second
> program?  Also, if i want to segment the raw brest images, what reader
> should I use and how should i generate the output files? What filters,
> mappers should I use to apply watershed segmentation on grayscale breast
> images of Raw format to find out if there is any lesion inside the brest
> image? (Currently, I am using MetaImageReader to apply other ITK filters
> on breast images.)
> 
> Any suggestions are appreiated.
> 
> My input PGM file is as follows
> 
> ***************************************************************************************
> 
> P2
> 
> 24 7
> 
> 15
> 
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 
> 0 3 3 3 3 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 15 15 15 0
> 
> 0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 15 0
> 
> 0 3 3 3 0 0 0 7 7 7 0 0 0 11 11 11 0 0 0 15 15 15 15 0
> 
> 0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 0 0
> 
> 0 3 0 0 0 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 0 0 0 0
> 
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 
> 
> 
> *************************************************************************************** 
> 
> Thanks,
> 
> Neha
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.