int
main()
{
random->SetMin(0.0);
random->SetMax(1000.0);
unsigned long size[2] = { 20, 20 };
random->SetSize(size);
float spacing[2] = { 0.7, 2.1 };
random->SetSpacing(spacing);
float origin[2] = { 15, 400 };
random->SetOrigin(origin);
using CasterType = itk::ScalarToArrayCastPointSetFilter<FloatPointSet2DType,
ArrayPointSetType>;
caster->SetInput(random->GetOutput());
caster->Update();
using SampleType =
sample->SetPointSet(caster->GetOutput());
return EXIT_SUCCESS;
}