PCL
|
Image rotation algorithm. More...
#include <Rotation.h>
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 74 of file Rotation.h.
|
inline |
Constructs a new Rotation object.
p | Reference to a pixel interpolation, which must remain valid while this object exists. |
angle | Rotation angle in radians |
cx | Horizontal coordinate of the center of rotation, measured in pixels in the image coordinate system. |
cy | Vertical coordinate of the center of rotation, measured in pixels in the image coordinate system. |
Definition at line 93 of file Rotation.h.
|
inline |
Constructs a new Rotation object.
p | Reference to a pixel interpolation, which must remain valid while this object exists. |
angle | Rotation angle in radians |
center | Coordinates of the center of rotation, measured in pixels in the image coordinate system. |
Definition at line 111 of file Rotation.h.
|
default |
Copy constructor.
|
inline |
Returns the rotation angle in radians.
Definition at line 126 of file Rotation.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.
|
inline |
Returns the center of rotation. The returned point coordinates are measured in pixels in the image coordinate system.
Definition at line 143 of file Rotation.h.
|
inline |
Returns the horizontal coordinate of the center of rotation, measured in pixels in the image coordinate system.
Definition at line 152 of file Rotation.h.
|
inline |
Returns the vertical coordinate of the center of rotation, measured in pixels in the image coordinate system.
Definition at line 161 of file Rotation.h.
|
inline |
Disables unclipped rotations for this object. See IsUnclipped() for information on unclipped rotations.
Definition at line 213 of file Rotation.h.
|
inline |
Enables unclipped rotations for this object. See IsUnclipped() for information on unclipped rotations.
Definition at line 204 of file Rotation.h.
|
inline |
Returns the current vector of per-channel filling values for uncovered image regions.
See the documentation for SetFillValues() for more information.
Definition at line 224 of file Rotation.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 true iff this transformation will preserve the entire target image without clipping any pixels after rotating it.
An unclipped rotation ignores the specified rotation center coordinates (see CenterX() and CenterY(), as well as the class constructor) and rotates images with respect to their geometric centers. To accommodate all rotated pixels in the result, the unclipped rotated image will always be bigger than the original, except for the trivial cases of rotations by 0 and 180 degrees.
Definition at line 195 of file Rotation.h.
|
inline |
Sets the rotation angle in radians.
Definition at line 134 of file Rotation.h.
|
inline |
Sets the center of rotation. The specified center point coordinates must be expressed in pixels in the image coordinate system.
Definition at line 170 of file Rotation.h.
|
inline |
Sets the center of rotation to the specified coordinates xc and yc, which must be expressed in pixels in the image coordinate system.
Definition at line 179 of file Rotation.h.
|
inline |
Sets a vector of per-channel filling values for uncovered image regions.
Uncovered regions result when an image is rotated by non-orthogonal angles.
By default, there are no filling values defined (and hence the returned vector is empty by default). When the Rotation 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).
Definition at line 241 of file Rotation.h.