Skip to content
Snippets Groups Projects
Commit 7a0300a5 authored by Julien Michel's avatar Julien Michel
Browse files

COMP: External apps did not know if FFTW was available, as a result the class was not compiling

parent 01934e4c
Branches
Tags
No related merge requests found
......@@ -18,6 +18,8 @@
#ifndef __otbOverlapSaveConvolutionImageFilter_txx
#define __otbOverlapSaveConvolutionImageFilter_txx
#include "itkConfigure.h"
#include "otbOverlapSaveConvolutionImageFilter.h"
#include "itkConstNeighborhoodIterator.h"
......@@ -93,6 +95,9 @@ OverlapSaveConvolutionImageFilter<TInputImage, TOutputImage>
e.SetDataObject(inputPtr);
throw e;
}
#else
itkGenericExceptionMacro(<<"The OverlapSaveConvolutionImageFilter can not operate without the FFTW library (double implementation). Please install it and set it up in the cmake configuration.");
#endif
}
template< class TInputImage, class TOutputImage>
......@@ -102,6 +107,7 @@ OverlapSaveConvolutionImageFilter< TInputImage, TOutputImage>
* ::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,int threadId) */
::GenerateData()
{
#if defined USE_FFTWD
// Input/Output pointers
typename OutputImageType::Pointer output = this->GetOutput();
typename InputImageType::ConstPointer input = this->GetInput();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment