Commit 9439a2b2 authored by Rashad Kanavath's avatar Rashad Kanavath

ENH: enable fft mode only if ITK_USE_FFTW options are activated

parent db9e2fb7
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "otbWaveletImageFilter.h" #include "otbWaveletImageFilter.h"
#include "otbWaveletInverseImageFilter.h" #include "otbWaveletInverseImageFilter.h"
#include "otbWaveletGenerator.h" #include "otbWaveletGenerator.h"
#include "itkConfigure.h"
namespace otb namespace otb
{ {
...@@ -46,10 +47,15 @@ namespace otb ...@@ -46,10 +47,15 @@ namespace otb
void DoInit() ITK_OVERRIDE void DoInit() ITK_OVERRIDE
{ {
SetName("DomainTransform"); SetName("DomainTransform");
SetDescription("Domain Transform application for wavelet and fourier"); #if defined(ITK_USE_FFTWF) || defined(ITK_USE_FFTWD)
const char * app_descr = "Domain Transform application for wavelet and fourier";
#else
const char * app_descr = "Domain Transform application for wavelet";
#endif
SetDescription(app_descr);
// Documentation // Documentation
SetDocName("Domain Transform application for wavelet and fourier"); SetDocName(app_descr);
SetDocLongDescription("TODO"); SetDocLongDescription("TODO");
SetDocLimitations("None"); SetDocLimitations("None");
SetDocAuthors("OTB-Team"); SetDocAuthors("OTB-Team");
...@@ -63,8 +69,10 @@ namespace otb ...@@ -63,8 +69,10 @@ namespace otb
AddParameter(ParameterType_Choice, "mode", "mode"); AddParameter(ParameterType_Choice, "mode", "mode");
SetParameterDescription("mode", "transform mode"); SetParameterDescription("mode", "transform mode");
#if defined(ITK_USE_FFTWF) || defined(ITK_USE_FFTWD)
AddChoice("mode.fft", "FFT transform"); AddChoice("mode.fft", "FFT transform");
SetParameterDescription("mode.fft", "FFT transform"); SetParameterDescription("mode.fft", "FFT transform");
#endif
AddChoice("mode.wavelet", "wavelet"); AddChoice("mode.wavelet", "wavelet");
SetParameterDescription("mode.wavelet", "Wavelet transform"); SetParameterDescription("mode.wavelet", "Wavelet transform");
AddParameter(ParameterType_Choice, AddParameter(ParameterType_Choice,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment