Go to the documentation of this file.
58 #include <pcl/Diagnostics.h>
109 using crop_mode = CropMode::value_type;
115 Crop(
double left = 0,
double top = 0,
double right = 0,
double bottom = 0 )
116 : m_margins( left, top, right, bottom )
117 , m_mode( CropMode::RelativeMargins )
125 template <
typename T>
128 , m_mode( CropMode::RelativeMargins )
140 Crop& operator =(
const Crop& ) =
default;
155 template <
typename T>
167 m_margins =
Rect( left, top, right, bottom );
185 return m_mode == CropMode::RelativeMargins;
195 return !IsRelative();
231 m_fillValues = fillValues;
236 void GetNewSizes(
int& width,
int& height )
const override;
258 #endif // __PCL_Crop_h
void SetMargins(int left, int top, int right, int bottom)
void SetMode(crop_mode mode)
Image cropping/expansion algorithm
void Apply(FI i, FI j, F f) noexcept(noexcept(f))
Crop(const GenericRectangle< T > &r)
A generic rectangle in the two-dimensional space.
Crop(double left=0, double top=0, double right=0, double bottom=0)
void SetFillValues(const DVector &fillValues)
const DVector & FillValues() const
void SetMargins(const GenericRectangle< T > &r)
Implements a generic, two-dimensional, shared or local image.