#include "itksys/SystemTools.hxx"
#include <sstream>
#ifdef ENABLE_QUICKVIEW
#endif
static void
int
main(int argc, char * argv[])
{
if (argc < 2)
{
CreateImage(image);
}
else
{
image = itk::ReadImage<UnsignedCharImageType>(argv[1]);
}
using SignedMaurerDistanceMapImageFilterType =
distanceMapImageFilter->SetInput(image);
#ifdef ENABLE_QUICKVIEW
image.GetPointer(), true, argc > 1 ? itksys::SystemTools::GetFilenameName(argv[1]) : "Generated image");
std::stringstream desc;
desc << "Signed Maurer Distance";
viewer.
AddImage(distanceMapImageFilter->GetOutput(),
true, desc.str());
#endif
return EXIT_SUCCESS;
}
void
{
image->SetRegions(region);
image->Allocate();
image->FillBuffer(0);
for (unsigned int i = 40; i < 60; ++i)
{
image->SetPixel(pixel, 255);
}
}