<br>Hi Daniela,<br><br>First you have to verify if the output of the skeletonization<br>filter had indeed all its pixels set to zero.<br><br>You can do this with code similar to<br><br> #include "itkMinimumMaximumImageFilter.h"<br>
typedef <br> itk::MinimumMaximumImageFilter<ScalarImageType> MinMaxFilterType;<br><br> MinMaxFilterType::Pointer minmaxFilter = MinMaxFilterType::New();<br><br> skeletonFilter->Update();<br>
image = skeletonFilter->GetOutput();<br>
<br> imageMin = minmaxFilter->GetMinimum();<br> imageMax = minmaxFilter->GetMaximum();<br><br><br> and printing out these values.<br><br> In this way, you will remove the confounding factors of<br><br> * Saving the image in DICOM, and<br>
* The visualization program / method that you use.<br><br><br><br> Please let us know what you find,<br><br> Thanks<br><br><br> Luis<br><br><br>-----------------------------------------------------------------------------------<br>
<div class="gmail_quote">On Sat, May 29, 2010 at 10:39 AM, Daniela Sacchetto <span dir="ltr"><<a href="mailto:danysunflower@hotmail.it">danysunflower@hotmail.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Thanks for your clarification, now I can compile my code in Release Mode and I have my output in a few seconds.<br><br>Neverthless now I have an other problem that I want to discuss with you. <br><br>My output is an dcm image but its pixels are all black...I can't see the skeleton because in my image all the white pixel disappear.... I think that it is a problem of <span><span><span><span>algorithm's setting and that it erodes too much my image but I don't know how to solve this problem...<br>
Could anyone help me?<br><br>Thanks a lot<br>Daniela<br><br></span></span></span></span><br></div></blockquote></div>