int
main(int argc, char * argv[])
{
if (argc < 4)
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " inputImageFile outputImageFile numberOfRepetitions" << std::endl;
return EXIT_FAILURE;
}
using InputPixelType = float;
using OutputPixelType = float;
const auto input = itk::ReadImage<InputImageType>(argv[1]);
const unsigned int repetitions = std::stoi(argv[3]);
filter->SetInput(input);
filter->SetRepetitions(repetitions);
filter->Update();
using WritePixelType = unsigned char;
rescaler->SetOutputMinimum(0);
rescaler->SetOutputMaximum(255);
rescaler->SetInput(filter->GetOutput());
return EXIT_SUCCESS;
}