Hi I am trying to use STAPLE method. But I get "empty" or black image<br>I have this code...<br><br><span style="font-family: courier new,monospace;"> typedef itk::STAPLEImageFilter <ImageType, ImageType> STAPLEImageFilterType;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> STAPLEImageFilterType::Pointer stapleFilter = STAPLEImageFilterType::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> stapleFilter->SetConfidenceWeight(1.0);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> stapleFilter->SetMaximumIterations(1);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> stapleFilter->SetInput(0, reader->GetOutput());</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> stapleFilter->SetInput(1, reader2->GetOutput());</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> stapleFilter->Update();</span><br>
<br>Do you know, what should be problem? first image is default mhd file (grayscale), second is mhd file after watershed segmentation (RGB image).<br><br><div class="gmail_quote">2011/4/4 Dan Mueller <span dir="ltr"><<a href="mailto:dan.muel@gmail.com">dan.muel@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
You may also be interested in the STAPLE method:<br>
Code/Algorithms/itkSTAPLEImageFilter.h<br>
<a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.20.3216&rep=rep1&type=pdf" target="_blank">http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.20.3216&rep=rep1&type=pdf</a><br>
<a href="http://midag.cs.unc.edu/pubs/papers/MICCAI05_JJomier_VesselSeg.pdf" target="_blank">http://midag.cs.unc.edu/pubs/papers/MICCAI05_JJomier_VesselSeg.pdf</a><br>
<br>
Cheers, Dan<br>
<div><div></div><div class="h5"><br>
On 4 April 2011 09:54, G G <<a href="mailto:greenlander1986@gmail.com">greenlander1986@gmail.com</a>> wrote:<br>
> Thank you, I can try it, It looks like very well :))<br>
><br>
> 2011/4/4 Juan Cardelino <<a href="mailto:juan.cardelino@gmail.com">juan.cardelino@gmail.com</a>><br>
>><br>
>> As long as I know, there is no way to compute the F-measure with ITK,<br>
>> however you can download the benchmark code from the project home<br>
>> page:<br>
>> <a href="http://www.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/" target="_blank">http://www.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/</a><br>
>> It is quite easy to use.<br>
>> Best regards,<br>
>> Juan<br>
>><br>
>> On Fri, Apr 1, 2011 at 7:51 PM, G G <<a href="mailto:greenlander1986@gmail.com">greenlander1986@gmail.com</a>> wrote:<br>
>> > Hi I would like to compare some images with F-measure method. Can ITK<br>
>> > compute f-measure? If yes, which filter, or which example should i use?<br>
>> > If ITK can some other image comparing, please give me some hint..<br>
>> > Thank you all<br>
>> ><br>
>> ><br>
>> > _____________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
</div></div></blockquote></div><br>