21 #ifndef otbLog10ThresholdedImageFilter_h
22 #define otbLog10ThresholdedImageFilter_h
24 #include "itkUnaryFunctorImageFilter.h"
25 #include "vnl/vnl_math.h"
36 template <
class TInput,
class TOutput>
54 return !(*
this != other);
60 return static_cast<TOutput
>(10.0 * std::log10(
static_cast<double>(A)));
83 template <
class TInputImage,
class TOutputImage>
85 :
public itk::UnaryFunctorImageFilter<TInputImage, TOutputImage,
86 Functor::Log10Thresholded<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
92 typedef itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, FunctorType>
Superclass;
104 this->GetFunctor().SetThresholdValue(val);
117 void operator=(
const Self&) =
delete;