int
main()
{
random->SetMin(0.0);
random->SetMax(1000.0);
using SpacingValueType = FloatImage2DType::SpacingValueType;
using PointValueType = FloatImage2DType::PointValueType;
random->SetSize(size);
SpacingValueType spacing[2] = { 0.7, 2.1 };
random->SetSpacing(spacing);
PointValueType origin[2] = { 15, 400 };
random->SetOrigin(origin);
using CasterType =
caster->SetInput(random->GetOutput());
caster->Update();
using SampleType =
sample->SetImage(caster->GetOutput());
return EXIT_SUCCESS;
}