PCL
|
A set of color values used to fill free or unused areas of images. More...
#include <CanvasColor.h>
Public Member Functions | |
CanvasColor ()=default | |
CanvasColor (const CanvasColor &)=default | |
void | GetCanvasColor (float &v0, float &v1, float &v2) const |
void | GetCanvasColor (float &v0, float &v1, float &v2, float &v3) const |
void | GetCanvasColor (float *v) const |
CanvasColor & | operator= (const CanvasColor &)=default |
void | SetCanvasColor (const float *v) |
void | SetCanvasColor (float v) |
void | SetCanvasColor (float v0, float v1, float v2) |
void | SetCanvasColor (float v0, float v1, float v2, float v3) |
Some geometric image transformations, such as rotations and translations for example, generate images with uncovered regions. CanvasColor defines a set of color components to initialize pixels on such unused areas.
CanvasColor stores pixel values in a normalized floating-point format suitable to be used for any pixel sample data type. When using CanvasColor with integer-sampled images, color components should be kept normalized in the normalized [0,1] range.
Definition at line 77 of file CanvasColor.h.
|
default |
Constructs a CanvasColor object with zero (black) color components.
|
default |
Copy constructor.
|
inline |
Retrieves the current RGB sample values in this CanvasColor object.
[out] | v0,v1,v2 | References to variables that will receive current sample values for the red/gray, green and blue channels, respectively. |
Definition at line 103 of file CanvasColor.h.
|
inline |
Retrieves the current RGBA sample values in this CanvasColor object.
[out] | v0,v1,v2,v3 | References to variables that will receive current sample values for the red/gray, green, blue and alpha channels, respectively. |
Definition at line 115 of file CanvasColor.h.
|
inline |
Retrieves the current sample values in this CanvasColor object.
[out] | v | Starting address of an array where current sample values will be copied. This array must provide storage for at least four elements. |
Definition at line 127 of file CanvasColor.h.
|
default |
Copy assignment operator. Returns a reference to this object.
|
inline |
Sets current sample values for this CanvasColor object.
v | Starting address of an array from which new sample values will be obtained. At least four elements are required. |
Definition at line 162 of file CanvasColor.h.
|
inline |
Sets all sample values of this CanvasColor object equal to an specified value v.
Definition at line 171 of file CanvasColor.h.
|
inline |
Sets current RGB sample values for this CanvasColor object.
v0,v1,v2 | New red/gray, green and blue sample values. |
Definition at line 139 of file CanvasColor.h.
|
inline |
Sets current RGB sample values for this CanvasColor object.
v0,v1,v2,v3 | New red/gray, green, blue and alpha sample values. |
Definition at line 151 of file CanvasColor.h.