int main(int argc, char*argv[])
{
ImageType::Pointer image = ImageType::New();
regionSize[0] = 5;
regionSize[1] = 4;
regionIndex[0] = 0;
regionIndex[1] = 0;
ImageType::RegionType region;
region.SetSize(regionSize);
image->SetRegions(region);
image->Allocate();
image->FillBuffer(0);
imageIterator.GoToBegin();
while(!imageIterator.IsAtEnd())
{
std::cout << imageIterator.GetIndex() << std::endl;
++imageIterator;
}
return EXIT_SUCCESS;
}