Represents a single-pixel sample in a RGB-D image.
More...
#include <random_tree_image.h>
Public Member Functions |
| PixelInstance (const RGBDImage *image, const LabelType &label, uint16_t x, uint16_t y, HorizontalFlipSetting setting=NoFlip) |
| PixelInstance (const RGBDImage *image, const LabelType &label, const Depth &depth, uint16_t x, uint16_t y, HorizontalFlipSetting setting=NoFlip) |
const RGBDImage * | getRGBDImage () const |
int | width () const |
int | height () const |
uint16_t | getX () const |
uint16_t | getY () const |
FeatureResponseType | averageRegionColor (const Offset &offset, const Region ®ion, uint8_t channel) const |
| Calculate the average value for the given region at the offset and the given color channel, on CPU.
|
FeatureResponseType | averageRegionDepth (const Offset &offset, const Region ®ion) const |
| Calculate the average depth for the given region at the offset, on CPU.
|
LabelType | getLabel () const |
const Depth | getDepth () const |
WeightType | getWeight () const |
| Currently not used and always returns 1.
|
HorizontalFlipSetting | getHorFlipSetting () const |
void | setHorFlipSetting (HorizontalFlipSetting setting) |
| use the new horizontal flip setting
|
Detailed Description
Represents a single-pixel sample in a RGB-D image.
Definition at line 102 of file random_tree_image.h.
Constructor & Destructor Documentation
curfil::PixelInstance::PixelInstance |
( |
const RGBDImage * |
image, |
|
|
const LabelType & |
label, |
|
|
uint16_t |
x, |
|
|
uint16_t |
y, |
|
|
HorizontalFlipSetting |
setting = NoFlip |
|
) |
| |
|
inline |
- Parameters
-
image | the RGB-D image that contains this pixel. Must not be null/ |
label | the ground-truth labeleing of this pixel. |
x | the x-coordinate of the pixel in the RGB-D image |
y | the y-coordinate of the pixel in the RGB-D image |
setting | horizontal flip setting, can be: NoFlip, Flip, Both |
Definition at line 113 of file random_tree_image.h.
curfil::PixelInstance::PixelInstance |
( |
const RGBDImage * |
image, |
|
|
const LabelType & |
label, |
|
|
const Depth & |
depth, |
|
|
uint16_t |
x, |
|
|
uint16_t |
y, |
|
|
HorizontalFlipSetting |
setting = NoFlip |
|
) |
| |
|
inline |
- Parameters
-
image | the RGB-D image that contains this pixel. Must not be null/ |
label | the ground-truth labeleing of this pixel. |
depth | the depth of the pixel in the RGB-D image |
x | the x-coordinate of the pixel in the RGB-D image |
y | the y-coordinate of the pixel in the RGB-D image |
setting | horizontal flip setting, can be: NoFlip, Flip, Both |
Definition at line 148 of file random_tree_image.h.
Member Function Documentation
FeatureResponseType curfil::PixelInstance::averageRegionColor |
( |
const Offset & |
offset, |
|
|
const Region & |
region, |
|
|
uint8_t |
channel |
|
) |
| const |
|
inline |
FeatureResponseType curfil::PixelInstance::averageRegionDepth |
( |
const Offset & |
offset, |
|
|
const Region & |
region |
|
) |
| const |
|
inline |
const Depth curfil::PixelInstance::getDepth |
( |
| ) |
const |
|
inline |
- Returns
- the according depth of this pixel in the RGB-D image
Definition at line 301 of file random_tree_image.h.
HorizontalFlipSetting curfil::PixelInstance::getHorFlipSetting |
( |
| ) |
const |
|
inline |
LabelType curfil::PixelInstance::getLabel |
( |
| ) |
const |
|
inline |
const RGBDImage* curfil::PixelInstance::getRGBDImage |
( |
| ) |
const |
|
inline |
- Returns
- pointer to the RGB-D image which contains this pixel
Definition at line 159 of file random_tree_image.h.
uint16_t curfil::PixelInstance::getX |
( |
| ) |
const |
|
inline |
- Returns
- the x-coordinate of the pixel in the RGB-D image which contains this pixel
Definition at line 180 of file random_tree_image.h.
uint16_t curfil::PixelInstance::getY |
( |
| ) |
const |
|
inline |
- Returns
- the x-coordinate of the pixel in the RGB-D image which contains this pixel
Definition at line 187 of file random_tree_image.h.
int curfil::PixelInstance::height |
( |
| ) |
const |
|
inline |
- Returns
- height in pixels of the RGB-D image which contains this pixel
Definition at line 173 of file random_tree_image.h.
int curfil::PixelInstance::width |
( |
| ) |
const |
|
inline |
- Returns
- width in pixels of the RGB-D image which contains this pixel
Definition at line 166 of file random_tree_image.h.
The documentation for this class was generated from the following file: