#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<ImageType>(argv[1]);
}
filter->SetInput(image);
filter->SetBackgroundValue(0);
filter->SetForegroundValue(255);
#ifdef ENABLE_QUICKVIEW
image.GetPointer(), true, argc > 1 ? itksys::SystemTools::GetFilenameName(argv[1]) : "Generated image");
std::stringstream desc;
desc << "Zero Crossing";
viewer.
AddImage(filter->GetOutput(),
true, desc.str());
#endif
return EXIT_SUCCESS;
}
void
{
image->SetRegions(region);
image->Allocate();
image->FillBuffer(-1);
for (unsigned int i = 0; i < 100; ++i)
{
for (unsigned int j = 0; j < 50; ++j)
{
index[0] = i;
index[1] = j;
image->SetPixel(index, 1);
}
}
}