int
main()
{
regionSize[0] = 5;
regionSize[1] = 4;
regionIndex[0] = 0;
regionIndex[1] = 0;
region.SetIndex(regionIndex);
image->SetRegions(region);
image->Allocate();
image->FillBuffer(0);
imageIterator.GoToBegin();
while (!imageIterator.IsAtEnd())
{
std::cout << imageIterator.GetIndex() << std::endl;
++imageIterator;
}
return EXIT_SUCCESS;
}