[Insight-users] F-measure

David Doria daviddoria at gmail.com
Fri Apr 8 13:48:37 EDT 2011


On Fri, Apr 8, 2011 at 1:46 PM, G G <greenlander1986 at gmail.com> wrote:
> Hi I am trying to use STAPLE method. But I get "empty" or black image
> I have this code...
>
>   typedef itk::STAPLEImageFilter <ImageType, ImageType>
> STAPLEImageFilterType;
>   STAPLEImageFilterType::Pointer stapleFilter =
> STAPLEImageFilterType::New();
>   stapleFilter->SetConfidenceWeight(1.0);
>   stapleFilter->SetMaximumIterations(1);
>   stapleFilter->SetInput(0, reader->GetOutput());
>   stapleFilter->SetInput(1, reader2->GetOutput());
>   stapleFilter->Update();
>
> Do you know, what should be problem? first image is default mhd file
> (grayscale), second is mhd file after watershed segmentation (RGB image).

GG,

Once you get this working, it would be great if you would add an example here:
http://www.itk.org/Wiki/ITK/Examples#Image_Segmentation

David


More information about the Insight-users mailing list