int main(int, char*[])
{
ImageType::RegionType bigRegion;
bigSize[0] = 100;
bigSize[1] = 100;
bigStart[0] = 0;
bigStart[1] = 0;
bigRegion.SetSize(bigSize);
ImageType::RegionType smallInsideRegion;
smallInsideSize[0] = 10;
smallInsideSize[1] = 10;
smallInsideStart[0] = 50;
smallInsideStart[1] = 50;
smallInsideRegion.SetSize(smallInsideSize);
smallInsideRegion.
SetIndex(smallInsideStart);
std::cout << "Small inside region is " << bigRegion.IsInside(smallInsideRegion) << std::endl;
ImageType::RegionType smallOutsideRegion;
smallOutsideSize[0] = 10;
smallOutsideSize[1] = 10;
smallOutsideStart[0] = 110;
smallOutsideStart[1] = 110;
smallOutsideRegion.SetSize(smallOutsideSize);
smallOutsideRegion.
SetIndex(smallOutsideStart);
std::cout << "Small outside region is " << bigRegion.IsInside(smallOutsideRegion) << std::endl;
ImageType::RegionType smallOverlapRegion;
smallOverlapSize[0] = 10;
smallOverlapSize[1] = 10;
smallOverlapStart[0] = 97;
smallOverlapStart[1] = 97;
smallOverlapRegion.SetSize(smallOverlapSize);
smallOverlapRegion.
SetIndex(smallOverlapStart);
std::cout << "Small overlap region is " << bigRegion.IsInside(smallOverlapRegion) << std::endl;
return EXIT_SUCCESS;
}