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

neha k itkneha1 at yahoo.com
Mon, 23 Feb 2004 09:41:13 -0800 (PST)


--0-120577061-1077558073=:78430
Content-Type: text/plain; charset=us-ascii


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.
--0-120577061-1077558073=:78430
Content-Type: text/html; charset=us-ascii

<P>Hi All,</P>
<P>I am trying to run exampleI programs in Watershed segmetnation. I tried the example program with Input file&nbsp;as PGM file (in.pgm) which is of size (24*7). When&nbsp;I run <FONT size=3><FONT face="Times New Roman"><STRONG>itkWatershedSegmentationExample.cxx,&nbsp;I</STRONG> get 5 output files of raw format (with level = 0.50).&nbsp; When&nbsp;I set any of those 5 output files as an input file to second program <STRONG>itkWSRawToPNG.cxx </STRONG>so that&nbsp;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?&nbsp; 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&nbsp;should&nbsp;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? </FONT></FONT><FONT face="Times New Roman" size=3>(Currently, I am using
 MetaImageReader to apply other ITK filters on breast images.)</FONT></P>
<P><FONT face="Times New Roman" size=3>Any suggestions are appreiated.</FONT></P>
<P><FONT face="Times New Roman" size=3>My input PGM file is as follows</FONT></P>
<P>***************************************************************************************</P><FONT size=2>
<P>P2</P>
<P>24 7</P>
<P>15</P>
<P>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</P>
<P>0 3 3 3 3 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 15 15 15 0</P>
<P>0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 15 0</P>
<P>0 3 3 3 0 0 0 7 7 7 0 0 0 11 11 11 0 0 0 15 15 15 15 0</P>
<P>0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 0 0</P>
<P>0 3 0 0 0 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 0 0 0 0</P>
<P>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</P>
<P></P></FONT>
<P>***************************************************************************************&nbsp;</P>
<P><FONT face="Times New Roman" size=3>Thanks,</FONT></P>
<P><FONT face="Times New Roman" size=3>Neha</FONT></P><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mailtag_us/*http://antispam.yahoo.com/tools?tool=1">Yahoo! Mail SpamGuard</a> - Read only the mail you want.</a>
--0-120577061-1077558073=:78430--