int main(int, char *[])
{
ImageType::Pointer image = ImageType::New();
const ImageType::IndexType start = {{0,0,0}};
const ImageType::SizeType size = {{200,200,200}};
ImageType::RegionType region;
region.SetSize( size );
region.SetIndex( start );
image->SetRegions( region );
image->Allocate();
ImageType::PixelType initialValue;
initialValue.Fill( 0.0 );
image->FillBuffer( initialValue );
const ImageType::IndexType pixelIndex = {{27,29,37}};
ImageType::PixelType pixelValue;
pixelValue[0] = 1.345;
pixelValue[1] = 6.841;
pixelValue[2] = 3.295;
image->SetPixel( pixelIndex, pixelValue );
ImageType::PixelType value = image->GetPixel( pixelIndex );
std::cout << value << std::endl;
return EXIT_SUCCESS;
}