#ifdef ENABLE_QUICKVIEW
#endif
int
main(int , char * [])
{
using PixelType = unsigned char;
ContourType::ControlPointListType points;
ContourType::ControlPointType point;
point.SetPositionInObjectSpace(0, 0);
points.push_back(point);
point.SetPositionInObjectSpace(0, 30);
points.push_back(point);
point.SetPositionInObjectSpace(30, 30);
points.push_back(point);
point.SetPositionInObjectSpace(0, 0);
points.push_back(point);
ContourType::Pointer contour = ContourType::New();
contour->SetControlPoints(points);
SpatialObjectToImageFilterType::Pointer imageFilter = SpatialObjectToImageFilterType::New();
imageFilter->SetInsideValue(255);
imageFilter->SetSize(size);
imageFilter->SetInput(contour);
imageFilter->Update();
WriterType::Pointer writer = WriterType::New();
writer->SetFileName("contour.png");
writer->SetInput(imageFilter->GetOutput());
writer->Update();
#ifdef ENABLE_QUICKVIEW
viewer.
AddImage(imageFilter->GetOutput());
#endif
return EXIT_SUCCESS;
}