PCL
|
Image cropping/expansion algorithm More...
#include <Crop.h>
Public Types | |
using | crop_mode = CropMode::value_type |
Public Member Functions | |
Crop (const Crop &)=default | |
template<typename T > | |
Crop (const GenericRectangle< T > &r) | |
Crop (double left=0, double top=0, double right=0, double bottom=0) | |
const DVector & | FillValues () const |
void | GetNewSizes (int &width, int &height) const override |
bool | IsAbsolute () const |
bool | IsRelative () const |
DRect | Margins () const |
crop_mode | Mode () const |
Crop & | operator= (const Crop &)=default |
void | SetFillValues (const DVector &fillValues) |
template<typename T > | |
void | SetMargins (const GenericRectangle< T > &r) |
void | SetMargins (int left, int top, int right, int bottom) |
void | SetMode (crop_mode mode) |
Public Member Functions inherited from pcl::GeometricTransformation | |
GeometricTransformation ()=default | |
GeometricTransformation (const GeometricTransformation &)=default | |
GeometricTransformation (GeometricTransformation &&)=default | |
~GeometricTransformation () override | |
GeometricTransformation & | operator= (const GeometricTransformation &)=default |
GeometricTransformation & | operator= (GeometricTransformation &&)=default |
Public Member Functions inherited from pcl::ImageTransformation | |
ImageTransformation ()=default | |
ImageTransformation (const ImageTransformation &)=default | |
virtual | ~ImageTransformation () |
template<class P > | |
GenericImage< P > & | operator>> (GenericImage< P > &image) const |
ImageVariant & | operator>> (ImageVariant &image) const |
Public Member Functions inherited from pcl::ImageResolution | |
ImageResolution ()=default | |
ImageResolution (const ImageResolution &)=default | |
void | GetResolution (double &x, double &y) |
double | HorizontalResolution () const |
bool | IsMetricResolution () const |
ImageResolution & | operator= (const ImageResolution &)=default |
double | Resolution () const |
void | SetMetricResolution (bool m) |
void | SetResolution (double r) |
void | SetResolution (double x, double y) |
double | VerticalResolution () const |
Protected Member Functions | |
void | Apply (pcl::ComplexImage &) const override |
void | Apply (pcl::DComplexImage &) const override |
void | Apply (pcl::DImage &) const override |
void | Apply (pcl::Image &) const override |
void | Apply (pcl::UInt16Image &) const override |
void | Apply (pcl::UInt32Image &) const override |
void | Apply (pcl::UInt8Image &) const override |
Additional Inherited Members | |
Static Public Member Functions inherited from pcl::GeometricTransformation | |
template<class P > | |
static void | ApplyGammaExponentCorrection (typename P::sample *samples, size_type length, double gamma, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
template<class P > | |
static void | ApplyInverseGammaExponentCorrection (typename P::sample *samples, size_type length, double gamma, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
template<class P > | |
static void | ApplyInverseSRGBGammaCorrection (typename P::sample *samples, size_type length, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
template<class P > | |
static void | ApplySRGBGammaCorrection (typename P::sample *samples, size_type length, AbstractImage::ThreadData &threadData, int maxProcessors=PCL_MAX_PROCESSORS) |
Crop is a noninterpolating geometric transformation class that allows cropping an image or expanding it by specifying separate cropping margins for each side. When a cropping margin is negative the image is cropped, and when it is positive, the image is expanded.
using pcl::Crop::crop_mode = CropMode::value_type |
|
inline |
|
inline |
|
default |
Copy constructor.
|
overrideprotectedvirtual |
Applies this transformation to a 32-bit complex image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 64-bit complex image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 64-bit floating point image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 32-bit floating point image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 16-bit unsigned integer image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 32-bit unsigned integer image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to an 8-bit unsigned integer image.
Reimplemented from pcl::ImageTransformation.
|
inline |
Returns the current vector of per-channel filling values for uncovered image regions.
See the documentation for SetFillValues() for more information.
|
overridevirtual |
Predicts transformed image dimensions.
[in,out] | width | Reference to a variable whose value is a horizontal dimension in pixels (width). On output, it will receive the predicted horizontal dimension after the transformation. |
[in,out] | height | Reference to a variable whose value is a vertical dimension in pixels (height). On output, it will receive the predicted vertical dimension after the transformation. |
Implements pcl::GeometricTransformation.
|
inline |
|
inline |
|
inline |
|
inline |
Copy assignment operator. Returns a reference to this object.
|
inline |
Sets a vector of per-channel filling values for uncovered image regions.
Uncovered regions result when a Crop instance extends an image due to positive cropping margins.
By default, there are no filling values defined (and hence the returned vector is empty by default). When the Crop instance is executed and a filling value is not defined for a channel of the target image, uncovered regions are filled with the minimum sample value in the native range of the image (usually zero).
|
inline |
|
inline |
|
inline |