int main(int argc, char * argv[])
{
if( argc < 2 )
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " inputImageFile [repetitions]" << std::endl;
return EXIT_FAILURE;
}
std::string inputFilename = argv[1];
int repetitions = 2;
if (argc > 2)
{
repetitions = atoi(argv[2]);
}
UnsignedCharImageType, UnsignedCharImageType > filterType;
readerType::Pointer reader = readerType::New();
reader->SetFileName( inputFilename.c_str() );
filterType::Pointer blurFilter = filterType::New();
blurFilter->SetInput( reader->GetOutput() );
blurFilter->SetRepetitions( repetitions );
viewer.
AddImage<UnsignedCharImageType>(reader->GetOutput());
viewer.
AddImage<UnsignedCharImageType>(blurFilter->GetOutput());
return EXIT_SUCCESS;
}