Parametrized visual image feature.
More...
#include <random_tree_image.h>
Detailed Description
Constructor & Destructor Documentation
curfil::ImageFeatureFunction::ImageFeatureFunction |
( |
FeatureType |
featureType, |
|
|
const Offset & |
offset1, |
|
|
const Region & |
region1, |
|
|
const uint8_t |
channel1, |
|
|
const Offset & |
offset2, |
|
|
const Region & |
region2, |
|
|
const uint8_t |
channel2 |
|
) |
| |
|
inline |
- Parameters
-
featureType | either COLOR of DEPTH |
offset1 | the offset of the first region |
region1 | the extent size of the first region |
channel1 | the image channel that the first region belongs to. Only used for COLOR features. |
offset2 | the offset of the second region |
region2 | the extent size of the second region |
channel2 | the image channel that the second region belongs to. Only used for COLOR features. |
Definition at line 390 of file random_tree_image.h.
Member Function Documentation
FeatureResponseType curfil::ImageFeatureFunction::calculateFeatureResponse |
( |
const PixelInstance & |
instance, |
|
|
bool |
flipRegion = false |
|
) |
| const |
|
inline |
uint8_t curfil::ImageFeatureFunction::getChannel1 |
( |
| ) |
const |
|
inline |
- Returns
- the channel that is used for the first region. only used for color featurse.
Definition at line 489 of file random_tree_image.h.
uint8_t curfil::ImageFeatureFunction::getChannel2 |
( |
| ) |
const |
|
inline |
- Returns
- the channel that is used for the second region. only used for color featurse.
Definition at line 510 of file random_tree_image.h.
const Offset& curfil::ImageFeatureFunction::getOffset1 |
( |
| ) |
const |
|
inline |
const Offset& curfil::ImageFeatureFunction::getOffset2 |
( |
| ) |
const |
|
inline |
const Region& curfil::ImageFeatureFunction::getRegion1 |
( |
| ) |
const |
|
inline |
- Returns
- the x/y size (extent) in pixels of the first region.
Definition at line 482 of file random_tree_image.h.
const Region& curfil::ImageFeatureFunction::getRegion2 |
( |
| ) |
const |
|
inline |
- Returns
- the x/y size (extent) in pixels of the second region.
Definition at line 503 of file random_tree_image.h.
int curfil::ImageFeatureFunction::getSortKey |
( |
| ) |
const |
|
inline |
- Returns
- a 32-bit key that is used to sort the features for performance reasons (improve cache-hit rate).
Definition at line 417 of file random_tree_image.h.
FeatureType curfil::ImageFeatureFunction::getType |
( |
| ) |
const |
|
inline |
std::string curfil::ImageFeatureFunction::getTypeString |
( |
| ) |
const |
|
inline |
- Returns
- the feature type as string in lowercase. e.g. "color" or "depth".
Definition at line 437 of file random_tree_image.h.
bool curfil::ImageFeatureFunction::isValid |
( |
| ) |
const |
|
inline |
- Returns
- true if and only if the parameters of this feature are valid
Definition at line 451 of file random_tree_image.h.
- Returns
- whether this image feature is equal to another
The documentation for this class was generated from the following file: