#include <CoordinateCoding.h>
|
| CoordinateCoding (const Parameters ¶m) |
| Constructor using the given parameters to set the CsscCoordinateCoding behaviour. More...
|
|
virtual | ~CoordinateCoding () |
|
void | toBinary (BitOutputStream &writer, bool writeSize=true) |
| Convert the stored information into a binary stream. More...
|
|
void | fromBinary (BitInputStream &reader) |
| Convert a binary stream into the stored information. More...
|
|
void | fromBinary (BitInputStream &reader, unsigned int hMapSizeX, unsigned int hMapSizeY) |
| Convert a binary stream into the stored information. More...
|
|
int | compare (const CoordinateCoding &other) |
| Compare this instance with another one. More...
|
|
void | exportVars (unsigned int &histogramCountSize, unsigned int &histogramMapSizeX, unsigned int &histogramMapSizeY) const |
| Export the value of the histogram count and size. More...
|
|
void | generateHistogramMap (FeatureList &featurelist, int numPoints) |
| Generation of new matrix representation based on circular scanning. More...
|
|
void | generateHistogramMap (std::vector< RefFeature > &refFeaturelist, FeatureList &featurelist, int offset, int frameIdx, DescriptorTimeMap &dtm, int numPoints, int xSize, int ySize) |
| Generation of new matrix representation based on circular scanning. More...
|
|
void | generateFeatureList (FeatureList &descriptors) |
| Reconstruction of the original histogram map starting from circular scanning representation. More...
|
|
void | StartTrainingMode () |
|
void | EndTrainingMode () |
|
int | AddImageSample (FeatureList &featurelist) |
|
int | writeSeparateContext (char *filename) |
|
int | readSeparateContext (char *filename) |
|
void | setVerbose () |
|
void | difference (CoordinateCoding &other) |
| Set object to be the differnce of the current histogram and the one passed as argument same image size is assumed call after generateHistogramMap2. More...
|
|
void | generateHistogramMap2 (FeatureList &featurelist, int numPoints) |
|
void | setIsOK (bool ok) |
|
◆ CoordinateCoding()
mpeg7cdva::CoordinateCoding::CoordinateCoding |
( |
const Parameters & |
param | ) |
|
Constructor using the given parameters to set the CsscCoordinateCoding behaviour.
- Parameters
-
param | the set of parameters to initialize this object. |
◆ ~CoordinateCoding()
virtual mpeg7cdva::CoordinateCoding::~CoordinateCoding |
( |
| ) |
|
|
virtual |
◆ AddImageSample()
int mpeg7cdva::CoordinateCoding::AddImageSample |
( |
FeatureList & |
featurelist | ) |
|
◆ compare()
Compare this instance with another one.
- Parameters
-
- Returns
- 0 if equal, or the number of different values if different.
◆ difference()
Set object to be the differnce of the current histogram and the one passed as argument same image size is assumed call after generateHistogramMap2.
◆ EndTrainingMode()
void mpeg7cdva::CoordinateCoding::EndTrainingMode |
( |
| ) |
|
◆ exportVars()
void mpeg7cdva::CoordinateCoding::exportVars |
( |
unsigned int & |
histogramCountSize, |
|
|
unsigned int & |
histogramMapSizeX, |
|
|
unsigned int & |
histogramMapSizeY |
|
) |
| const |
Export the value of the histogram count and size.
- Parameters
-
histogramCountSize | size of histogram count |
histogramMapSizeX | size of histogram map (X) |
histogramMapSizeY | size of histogram map (Y) |
◆ fromBinary() [1/2]
void mpeg7cdva::CoordinateCoding::fromBinary |
( |
BitInputStream & |
reader | ) |
|
Convert a binary stream into the stored information.
- Parameters
-
reader | the bitstream reader object. |
◆ fromBinary() [2/2]
void mpeg7cdva::CoordinateCoding::fromBinary |
( |
BitInputStream & |
reader, |
|
|
unsigned int |
hMapSizeX, |
|
|
unsigned int |
hMapSizeY |
|
) |
| |
Convert a binary stream into the stored information.
In this case the buffer does not contain histo X and Y size, but they are specified as parameters.
- Parameters
-
reader | the bitstream reader object. |
| |
◆ generateFeatureList()
void mpeg7cdva::CoordinateCoding::generateFeatureList |
( |
FeatureList & |
descriptors | ) |
|
Reconstruction of the original histogram map starting from circular scanning representation.
- Parameters
-
descriptors | reconstructed list of keypoints and descriptors |
◆ generateHistogramMap() [1/2]
void mpeg7cdva::CoordinateCoding::generateHistogramMap |
( |
FeatureList & |
featurelist, |
|
|
int |
numPoints |
|
) |
| |
Generation of new matrix representation based on circular scanning.
- Parameters
-
featurelist | list of keypoints. |
numPoints | the number of features to encode (only the first numPoint features in featurelist will be encoded) |
◆ generateHistogramMap() [2/2]
void mpeg7cdva::CoordinateCoding::generateHistogramMap |
( |
std::vector< RefFeature > & |
refFeaturelist, |
|
|
FeatureList & |
featurelist, |
|
|
int |
offset, |
|
|
int |
frameIdx, |
|
|
DescriptorTimeMap & |
dtm, |
|
|
int |
numPoints, |
|
|
int |
xSize, |
|
|
int |
ySize |
|
) |
| |
Generation of new matrix representation based on circular scanning.
keeps order specified by ref feature list (using populated entries only
- Parameters
-
featurelist | list of keypoints. |
numPoints | the number of features to encode (only the first numPoint features in featurelist will be encoded) |
◆ generateHistogramMap2()
void mpeg7cdva::CoordinateCoding::generateHistogramMap2 |
( |
FeatureList & |
featurelist, |
|
|
int |
numPoints |
|
) |
| |
◆ readSeparateContext() [1/2]
static int mpeg7cdva::CoordinateCoding::readSeparateContext |
( |
char * |
filename, |
|
|
CircularSumContext & |
cCsc |
|
) |
| |
|
static |
◆ readSeparateContext() [2/2]
int mpeg7cdva::CoordinateCoding::readSeparateContext |
( |
char * |
filename | ) |
|
◆ setIsOK()
void mpeg7cdva::CoordinateCoding::setIsOK |
( |
bool |
ok | ) |
|
|
inline |
◆ setVerbose()
void mpeg7cdva::CoordinateCoding::setVerbose |
( |
| ) |
|
|
inline |
◆ StartTrainingMode()
void mpeg7cdva::CoordinateCoding::StartTrainingMode |
( |
| ) |
|
◆ toBinary()
void mpeg7cdva::CoordinateCoding::toBinary |
( |
BitOutputStream & |
writer, |
|
|
bool |
writeSize = true |
|
) |
| |
Convert the stored information into a binary stream.
- Parameters
-
writer | the bitstream writer object. |
◆ writeSeparateContext()
int mpeg7cdva::CoordinateCoding::writeSeparateContext |
( |
char * |
filename | ) |
|
◆ CONTEXT_RANGE
const int mpeg7cdva::CoordinateCoding::CONTEXT_RANGE = 5 |
|
static |
◆ MAXIMUM_SUM_CONTEXT
Maximum value of sum context.
◆ SUM_HIST_COUNT_SIZE
const int mpeg7cdva::CoordinateCoding::SUM_HIST_COUNT_SIZE = 64 |
|
static |
Histogram count context lenght.
The documentation for this class was generated from the following file: