52 #ifndef __PCL_Resample_h
53 #define __PCL_Resample_h
58 #include <pcl/Diagnostics.h>
92 Default = RelativeDimensions
113 namespace AbsoluteResizeMode
120 NumberOfAbsoluteResizeModes,
121 Default = ForceWidthAndHeight
142 using resize_mode = ResizeMode::value_type;
147 using abs_resize_mode = AbsoluteResizeMode::value_type;
193 void GetSizes(
double& width,
double& height )
const
195 width = m_xSize; height = m_ySize;
228 m_xSize = width; m_ySize = height;
342 return m_mode == ResizeMode::RelativeDimensions;
351 return !IsRelative();
386 bool SupportsGammaCorrection()
const override
393 double m_xSize = 1.0;
394 double m_ySize = 1.0;
395 resize_mode m_mode = ResizeMode::Default;
396 abs_resize_mode m_absMode = AbsoluteResizeMode::Default;
Implements a generic, two-dimensional, shared or local image.
A process using multiple concurrent execution threads.
Abstract root base class for all pixel interpolation algorithms.
Image resampling algorithm.
void SetAbsMode(abs_resize_mode absMode)
void Apply(pcl::UInt8Image &) const override
void Apply(pcl::UInt32Image &) const override
void Apply(pcl::UInt16Image &) const override
void SetScalingFactors(double sx, double sy)
void SetYSize(double height)
Resample(PixelInterpolation &p, double scale=1.0)
void GetScalingFactors(double &sx, double &sy) const
void SetYScale(double sy)
void SetXSize(double width)
void GetNewSizes(int &width, int &height) const override
void Apply(pcl::Image &) const override
abs_resize_mode AbsMode() const
Resample(const Resample &)=default
Resample(PixelInterpolation &p, double scaleX, double scaleY)
void SetMode(resize_mode mode)
void SetXScale(double sx)
void GetSizes(double &width, double &height) const
void SetSizes(double width, double height)
void Apply(pcl::DImage &) const override