#ifdef ENABLE_QUICKVIEW
#endif
template <typename TImage>
void
CreateImage(TImage * const image);
int
main(int argc, char * argv[])
{
std::string outputFilename = "Output.png";
unsigned int iteration = 1;
if (argc >= 4)
{
image = itk::ReadImage<ImageType>(argv[1]);
std::stringstream ssIteration(argv[2]);
ssIteration >> iteration;
outputFilename = argv[3];
}
else
{
CreateImage(image.GetPointer());
}
std::cout << "Iterations: " << iteration << std::endl;
pruneFilter->SetInput(image);
pruneFilter->SetIteration(iteration);
pruneFilter->GetOutput();
#ifdef ENABLE_QUICKVIEW
viewer.
AddImage(pruneFilter->GetOutput());
#endif
return EXIT_SUCCESS;
}
template <typename TImage>
void
CreateImage(TImage * const image)
{
image->SetRegions(region);
image->Allocate(true);
for (int r = 40; r < 100; ++r)
{
for (int c = 40; c < 100; ++c)
{
image->SetPixel(pixelIndex, 50);
}
}
image->SetPixel(pixelIndex, 50);
}