PCL
|
A geometric transformation to resample images by integer ratios. More...
#include <IntegerResample.h>
Public Types | |
using | downsample_mode = IntegerDownsampleMode::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 97 of file IntegerResample.h.
using pcl::IntegerResample::downsample_mode = IntegerDownsampleMode::value_type |
Represents a downsample operation.
Definition at line 105 of file IntegerResample.h.
|
inline |
Constructs an IntegerResample object with zoom factor z and downsampling mode m.
Definition at line 111 of file IntegerResample.h.
|
default |
Copy constructor.
|
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 downsample mode of this IntegerResample object.
Definition at line 169 of file IntegerResample.h.
|
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 |
Returns the pixel scaling factor applied by this instance, or the equivalent image resampling ratio. See SetZoomFactor() for the correspondence between zoom factors and resampling ratios.
Definition at line 159 of file IntegerResample.h.
|
inline |
Sets the downsample mode for this IntegerResample object.
The downsample mode defines an statistical operation that the integer resampling algorithms applies to the set of original pixels that produce each pixel in the subsampled image. The default mode is IntegerDownsampleMode::Average, which calculates the mean of source pixels. The Median, Minimum and Maximum modes turn the integer downsampling algorithm into a morphological downsampling operation with very interesting properties and applications.
Definition at line 185 of file IntegerResample.h.
|
inline |
Sets the zoom factor for this IntegerResample object.
Positive zoom factors are interpreted as magnifying factors; negative zoom factors are reduction factors. For example:
Zoom Factor | Resampling ratio (original pixels : resampled pixels) |
-3 | 1:3 (1/3 reduction) |
-2 | 1:2 (1/2 reduction) |
1 | 1:1 (actual pixels) |
2 | 2:1 (x2 magnification) |
3 | 3:1 (x3 magnification) |
Definition at line 149 of file IntegerResample.h.
|
inline |
Returns the current zoom factor of this IntegerResample object.
Definition at line 125 of file IntegerResample.h.