static void
int
main()
{
CreateImage(image);
corner2[0] = corner1[0] + region.GetSize()[0] - 1;
corner2[1] = corner1[1] + region.GetSize()[1] - 1;
it.GoToBegin();
while (!it.IsAtEnd())
{
std::cout << (int)it.Get() << std::endl;
++it;
}
return EXIT_SUCCESS;
}
void
{
auto regionSize = ImageType::SizeType::Filled(3);
region.SetIndex(regionIndex);
image->SetRegions(region);
image->Allocate();
while (!imageIterator.IsAtEnd())
{
++imageIterator;
}
}