PCL
|
Image resampling algorithm. More...
#include <Resample.h>
Public Types | |
using | abs_resize_mode = AbsoluteResizeMode::value_type |
using | resize_mode = ResizeMode::value_type |
Protected Member Functions | |
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 |
Protected Member Functions inherited from pcl::ImageTransformation | |
virtual void | Apply (pcl::ComplexImage &image) const |
virtual void | Apply (pcl::DComplexImage &image) const |
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) |
Definition at line 133 of file Resample.h.
using pcl::Resample::abs_resize_mode = AbsoluteResizeMode::value_type |
Represents an absolute resizing mode.
Definition at line 147 of file Resample.h.
using pcl::Resample::resize_mode = ResizeMode::value_type |
Represents a resizing mode.
Definition at line 142 of file Resample.h.
|
inline |
Constructs a default Resample object using the specified pixel interpolation p and a single scaling ratio for both axes.
The specified pixel interpolation object p must remain valid while this object exists.
The resizing mode is set relative to current image dimensions.
Definition at line 158 of file Resample.h.
|
inline |
Constructs a default Resample object using the specified pixel interpolation p and separate scaling ratios for the X and Y axes, scaleX and scaleY respectively.
The specified pixel interpolation object p must remain valid while this object exists.
The resizing mode is set relative to current image dimensions.
Definition at line 175 of file Resample.h.
|
default |
Copy constructor.
|
inline |
Returns the current absolute resizing mode. The absolute resizing mode is only applied when Mode() is not equal to ResizeMode::RelativeDimensions.
Definition at line 366 of file Resample.h.
|
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.
|
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 |
Gets the scaling factors sx and sy for the X and Y axes, respectively.
Use GetScalingFactors(), XScale() and YScale() semantics to define a Resample instance that resizes images relative to their current dimensions.
Definition at line 261 of file Resample.h.
|
inline |
Gets the resampled image width and height.
Use GetSizes(), XSize() and YSize() semantics to define a Resample instance that resizes images to fixed dimensions.
Definition at line 193 of file Resample.h.
|
inline |
Returns true iff this Resample object resizes images to fixed dimensions, i.e. when Mode() is not equal to ResizeMode::RelativeDimensions.
Definition at line 349 of file Resample.h.
|
inline |
Returns true iff this Resample object resizes images relative to their current dimensions, i.e. when Mode() is equal to ResizeMode::RelativeDimensions.
Definition at line 340 of file Resample.h.
|
inline |
Returns the current resize mode.
Definition at line 330 of file Resample.h.
|
inline |
Sets the absolute resizing mode. The absolute resizing mode is only applied when Mode() is not equal to ResizeMode::RelativeDimensions.
Definition at line 375 of file Resample.h.
|
inline |
Sets the current resize mode.
Definition at line 357 of file Resample.h.
|
inline |
Sets the scaling factors sx and sy for the X and Y axes, respectively.
Use SetScalingFactors(), SetXScale() and SetYScale() semantics to define a Resample instance that resizes images relative to their current dimensions.
Definition at line 298 of file Resample.h.
|
inline |
Sets the resampled image width and height.
Use SetSizes(), SetXSize() and SetYSize() semantics to define a Resample instance that resizes images to fixed dimensions.
Definition at line 226 of file Resample.h.
|
inline |
Sets the horizontal scaling factor.
Use SetScalingFactors(), SetXScale() and SetYScale() semantics to define a Resample instance that resizes images relative to their current dimensions.
Definition at line 310 of file Resample.h.
|
inline |
Sets the resampled image width.
Use SetSizes(), SetXSize() and SetYSize() semantics to define a Resample instance that resizes images to fixed dimensions.
Definition at line 237 of file Resample.h.
|
inline |
Sets the vertical scaling factor.
Use SetScalingFactors(), SetXScale() and SetYScale() semantics to define a Resample instance that resizes images relative to their current dimensions.
Definition at line 322 of file Resample.h.
|
inline |
Sets the resampled image height.
Use SetSizes(), SetXSize() and SetYSize() semantics to define a Resample instance that resizes images to fixed dimensions.
Definition at line 248 of file Resample.h.
|
inline |
Returns the horizontal scaling factor.
Use GetScalingFactors(), XScale() and YScale() semantics to define a Resample instance that resizes images relative to their current dimensions.
Definition at line 273 of file Resample.h.
|
inline |
Returns the resampled image width.
Use GetSizes(), XSize() and YSize() semantics to define a Resample instance that resizes images to fixed dimensions.
Definition at line 204 of file Resample.h.
|
inline |
Returns the vertical scaling factor.
Use GetScalingFactors(), XScale() and YScale() semantics to define a Resample instance that resizes images relative to their current dimensions.
Definition at line 285 of file Resample.h.
|
inline |
Returns the resampled image height.
Use GetSizes(), XSize() and YSize() semantics to define a Resample instance that resizes images to fixed dimensions.
Definition at line 215 of file Resample.h.