<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello, <br></span></div><div><br><span></span></div><div><span>Thank you for your reply.</span></div><div><br><span></span></div><div><span>I just used the "GeodesicActiveContourImageFilter.cxx" in ITK to perform the level-set segmentation. And I used a reader to read the initially segmented data, then give that data as the input to the "GeodesicActiveContourFilter", that is, in the original code, it was like: <br></span></div><div><br></div><div><span>*****************</span></div><div> typedef float InternalPixelType;<br> const unsigned int Dimension = 3;<br> typedef itk::Image< InternalPixelType, Dimension > InternalImageType;<br></div><div><br></div><div>typedef
itk::FastMarchingImageFilter< <br> InternalImageType, <br> InternalImageType > FastMarchingFilterType;</div><div><br></div><div>FastMarchingFilterType::Pointer fastMarching = FastMarchingFilterType::New();</div><div>...<br><span></span></div><div><span>geodesicActiveContour->SetInput( fastMarching->GetOutput() );</span></div><div><span>*****************</span></div><div><br><span></span></div><div><span>But, I changed it as: <br></span></div><div><span><br></span></div><div><span>*****************<br></span></div><div><span>typedef itk::ImageFileReader<
InternalImageType > ReaderType;</span></div><div><span>ReaderType::Pointer reader2 = ReaderType::New();</span></div><div><span>reader2->SetFileName( argv[10] );<br></span></div><div><span>geodesicActiveContour->SetInput( reader2->GetOutput() );</span></div><div><span>*****************</span></div><div>The code compiles, but the result is nothing but exactly the same as the initially segmented data, which was read and given to the "GeodesicActiveContourFilter", even if I changed several kinds of parameters. <br></div><div><br></div><div>Am I doing something wrong here??</div><div><br></div><div>Looking forward to receive your suggestions. Thanks in advance. <br></div><div><br></div><div>Regards,</div><div>Abayiz<br></div><div><br></div><div><br></div><div><br><span></span></div><div><span><br></span></div><div><span><br></span></div><div><span><br></span></div><div><br></div><div style="font-family: times new roman,new york,times,serif;
font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Juan Cardelino <juan.cardelino@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Abayiz <abayiz@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> itk <insight-users@itk.org><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, August 15, 2011 2:31 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] Use Initial Segmentation as Input Level-Set<br></font><br>On Sun, Aug 14, 2011 at 9:29 AM, Abayiz <<a ymailto="mailto:abayiz@yahoo.com" href="mailto:abayiz@yahoo.com">abayiz@yahoo.com</a>> wrote:<br>> Hello,<br>> I want to perform level-set segmentation using a set of already achieved<br>> initially segmented 3D data. What I tried was giving the initial
segmented<br>> data as the output of the level-set filter (for instance instead of giving<br>> FastMarchingFilter->GetOutput(), I gave reader->GetOutput, after reading the<br>> data) . But it didn't work. How can I do this??<br><br>Well I do exactly that and works, it is just a matter of details. If<br>you provide more information about how exactly do you implement it<br>maybe we can help you.<br>In addition, it would help if you also tell us what exactly "didn't<br>work means". It doesn't compile? The program crashes? It gives<br>unexpected output?<br>Please try to be more precise, we are not seeing your screen so we<br>can't possibly guess what is going on.<br><br><br>> Sincerely thank you in advance!<br>> Regards,<br>> Abayiz<br>><br>> _____________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Kitware offers ITK Training Courses, for more information visit:<br>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>><br>> Please keep messages on-topic and check the ITK FAQ at:<br>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>><br><br><br></div></div></div></body></html>