58 #include <pcl/Diagnostics.h> 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 Image cropping/expansion algorithm
void SetMargins(const GenericRectangle< T > &r)
void SetMargins(int left, int top, int right, int bottom)
CropMode::value_type crop_mode
void SetMode(crop_mode mode)
16-bit unsigned integer image.
A generic rectangle in the two-dimensional space.
Crop(const GenericRectangle< T > &r)
64-bit floating-point rectangle in the R^2 space.
32-bit floating point complex image.
Crop(double left=0, double top=0, double right=0, double bottom=0)
64-bit floating point real vector.
void Apply(FI i, FI j, F f) noexcept(noexcept(f))
void SetFillValues(const DVector &fillValues)
64-bit floating point real image.
32-bit unsigned integer image.
8-bit unsigned integer image.
const DVector & FillValues() const
64-bit floating point complex image.
32-bit integer rectangle on the plane.
32-bit floating point real image.