52 #ifndef __PCL_AdaptiveLocalFilter_h
53 #define __PCL_AdaptiveLocalFilter_h
58 #include <pcl/Diagnostics.h>
109 : m_size(
Max( 3, size|1 ) )
110 , m_sigma(
Max( 0.0, sigma ) )
140 PCL_PRECONDITION( size >= 3 )
141 PCL_PRECONDITION( (size & 1) != 0 )
142 m_size =
Max( 3, size|1 );
170 PCL_PRECONDITION( sigma >= 0 )
171 m_sigma =
Max( 0.0, sigma );
197 bool m_useMAD =
false;
Adaptive, local noise reduction filter in the spatial domain.
void Apply(pcl::Image &) const override
AdaptiveLocalFilter(double sigma, int size=5, bool useMAD=false)
~AdaptiveLocalFilter() override
void SetSigma(double sigma)
void Apply(pcl::UInt32Image &) const override
void UseMAD(bool useMAD=true)
void Apply(pcl::UInt8Image &) const override
void Apply(pcl::DImage &) const override
void Apply(pcl::UInt16Image &) const override
AdaptiveLocalFilter(const AdaptiveLocalFilter &)=default
Implements a generic, two-dimensional, shared or local image.
A process using multiple concurrent execution threads.
constexpr const T & Max(const T &a, const T &b) noexcept