static void
int
main()
{
CreateImage(image);
pixel[0] = 1.3;
interpolator->SetInputImage(image);
std::cout << "Value at 1.3: " << interpolator->EvaluateAtContinuousIndex(pixel) << std::endl;
return EXIT_SUCCESS;
}
void
{
start[0] = 0;
size[0] = 10;
region.SetIndex(start);
image->SetRegions(region);
image->Allocate();
for (unsigned int i = 0; i < 10; ++i)
{
pixelIndex[0] = i;
image->SetPixel(pixelIndex, i * 10);
}
}