int
main(int, char *[])
{
size[0] = 10;
size[1] = 10;
randomImageSource->SetSize(size);
randomImageSource->Update();
ellipse->SetRadiusInObjectSpace(2);
ellipse->SetCenterInObjectSpace(offset);
ellipse->Update();
using CalculatorType =
calculator->SetImage(image);
calculator->SetSpatialObject(ellipse);
calculator->Update();
std::cout << "Sample mean = " << calculator->GetMean() << std::endl;
std::cout << "Sample covariance = " << calculator->GetCovarianceMatrix();
return EXIT_SUCCESS;
}