int main(int, char *[])
{
ImageType::Pointer image = ImageType::New();
image->SetRegions(region);
image->SetVectorLength(2);
image->Allocate();
pixelIndex[0] = 1;
pixelIndex[1] = 1;
ImageType::PixelType pixelValue = image->GetPixel(pixelIndex);
std::cout << "pixel (1,1) = " << pixelValue << std::endl;
VariableVectorType variableLengthVector;
variableLengthVector[0] = 1.1;
variableLengthVector[1] = 2.2;
image->SetPixel(pixelIndex, variableLengthVector);
std::cout << "pixel (1,1) = " << pixelValue << std::endl;
return EXIT_SUCCESS;
}