int
main(int, char *[])
{
auto image = ImageType::New();
constexpr ImageType::SizeType size = {
{ 200, 200, 200 }
};
constexpr ImageType::IndexType start = {
{ 0, 0, 0 }
};
ImageType::RegionType region;
region.SetSize(size);
region.SetIndex(start);
image->SetRegions(region);
image->Allocate(true);
constexpr ImageType::IndexType pixelIndex = {
{ 27, 29, 37 }
};
const ImageType::PixelType pixelValue = image->GetPixel(pixelIndex);
image->SetPixel(pixelIndex, pixelValue + 1);
return EXIT_SUCCESS;
}
Templated n-dimensional image class.