curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | List of all members
curfil::PixelInstance Class Reference

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 RGBDImagegetRGBDImage () const
int width () const
int height () const
uint16_t getX () const
uint16_t getY () const
FeatureResponseType averageRegionColor (const Offset &offset, const Region &region, 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 &region) 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
imagethe RGB-D image that contains this pixel. Must not be null/
labelthe ground-truth labeleing of this pixel.
xthe x-coordinate of the pixel in the RGB-D image
ythe y-coordinate of the pixel in the RGB-D image
settinghorizontal 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
imagethe RGB-D image that contains this pixel. Must not be null/
labelthe ground-truth labeleing of this pixel.
depththe depth of the pixel in the RGB-D image
xthe x-coordinate of the pixel in the RGB-D image
ythe y-coordinate of the pixel in the RGB-D image
settinghorizontal 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

Calculate the average value for the given region at the offset and the given color channel, on CPU.

See https://github.com/deeplearningais/curfil/wiki/Visual-Features for details.

Definition at line 195 of file random_tree_image.h.

FeatureResponseType curfil::PixelInstance::averageRegionDepth ( const Offset offset,
const Region region 
) const
inline

Calculate the average depth for the given region at the offset, on CPU.

See https://github.com/deeplearningais/curfil/wiki/Visual-Features for details.

Definition at line 241 of file random_tree_image.h.

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
Returns
the horizontal flip setting

Definition at line 315 of file random_tree_image.h.

LabelType curfil::PixelInstance::getLabel ( ) const
inline
Returns
the ground-truth labeling of this pixel

Definition at line 294 of file random_tree_image.h.

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: