static void
int
main()
{
CreateImage(image);
binaryImageToLabelMapFilter->SetInput(image);
binaryImageToLabelMapFilter->Update();
using LabelMapToLabelImageFilterType =
labelMapToLabelImageFilter->SetInput(binaryImageToLabelMapFilter->GetOutput());
labelMapToLabelImageFilter->Update();
return EXIT_SUCCESS;
}
void
{
region.SetIndex(start);
image->SetRegions(region);
image->Allocate();
while (!imageIterator.IsAtEnd())
{
if ((imageIterator.GetIndex()[0] > 5 && imageIterator.GetIndex()[0] < 10) &&
(imageIterator.GetIndex()[1] > 5 && imageIterator.GetIndex()[1] < 10))
{
}
else
{
imageIterator.Set(0);
}
++imageIterator;
}
}