#include "itkConfigure.h"
#if !defined(ITK_USE_FFTWF)
#endif
int
main(int argc, char * argv[])
{
if (argc != 3)
{
std::cerr << "Usage: " << argv[0] << " input output" << std::endl;
return EXIT_FAILURE;
}
using OutputPixelType = unsigned short;
using WorkPixelType = float;
inputreader->SetFileName(argv[1]);
writer->SetFileName(argv[2]);
inputreader->Update();
fftinput->SetInput(inputreader->GetOutput());
fftinput->Update();
using ComplexImageType = FFTFilterType::OutputImageType;
fftoutput->SetInput(
fftinput->GetOutput());
fftoutput->Update();
using RescaleFilterType =
std::cout << fftoutput->GetOutput()->GetLargestPossibleRegion().GetSize()
<< std::endl;
intensityrescaler->SetInput(fftoutput->GetOutput());
intensityrescaler->SetOutputMinimum(0);
intensityrescaler->SetOutputMaximum(65535);
writer->SetInput(intensityrescaler->GetOutput());
writer->Update();
return EXIT_SUCCESS;
}