int main(int, char *[])
{
ImageType::Pointer image = ImageType::New();
ImageType::RegionType region;
region.SetSize( size );
image->SetRegions( region );
image->Allocate(true);
ImageType::PixelType pixelValue = image->GetPixel( pixelIndex );
image->SetPixel( pixelIndex, pixelValue+1 );
return EXIT_SUCCESS;
}