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);
bool operator==(const Log10Thresholded &other) const
void SetThresholdValue(const double value)
bool operator!=(const Log10Thresholded &) const
TOutput operator()(const TInput &A) const
Computes the 10 * std::log10(x) pixel-wise with a threshold for the lowest values.
Log10ThresholdedImageFilter(const Self &)=delete
Log10ThresholdedImageFilter Self
Functor::Log10Thresholded< typename TInputImage::PixelType, typename TOutputImage::PixelType > FunctorType
itk::SmartPointer< Self > Pointer
Log10ThresholdedImageFilter()
~Log10ThresholdedImageFilter() override
void SetThresholdedValue(double val)
itk::UnaryFunctorImageFilter< TInputImage, TOutputImage, FunctorType > Superclass
itk::SmartPointer< const Self > ConstPointer
void operator=(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.