namespace
{
}
static void CreateImage(ImageType::Pointer);
int main(int, char*[])
{
exclusionRegionSize.
Fill(2);
exclusionRegionIndex.
Fill(0);
ImageType::RegionType exclusionRegion(exclusionRegionIndex, exclusionRegionSize);
ImageType::Pointer image = ImageType::New();
CreateImage(image);
unsigned int numberVisited = 0;
while(!imageIterator.IsAtEnd())
{
std::cout << imageIterator.Get() << std::endl;
++imageIterator;
++numberVisited;
}
std::cout << "Visited " << numberVisited << std::endl;
return EXIT_SUCCESS;
}
void CreateImage(ImageType::Pointer image)
{
ImageType::RegionType region(regionIndex,regionSize);
image->SetRegions(region);
image->Allocate();
image->FillBuffer(0);
}