MPEG CDVA Experimentation Model (CXM)  1.0
Compact Descriptors for Visual Analisys
Data Structures | Public Member Functions | Static Public Member Functions | Static Public Attributes
mpeg7cdva::CoordinateCoding Class Reference

#include <CoordinateCoding.h>

Data Structures

struct  CircularSumContext
 Basic structure for Cssc. More...
 

Public Member Functions

 CoordinateCoding (const Parameters &param)
 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)
 

Static Public Member Functions

static int readSeparateContext (char *filename, CircularSumContext &cCsc)
 

Static Public Attributes

static const int SUM_HIST_COUNT_SIZE = 64
 Histogram count context lenght. More...
 
static const int CONTEXT_RANGE = 5
 Sum-based context range. More...
 
static const int MAXIMUM_SUM_CONTEXT = (2*CONTEXT_RANGE*CONTEXT_RANGE + CONTEXT_RANGE)
 Maximum value of sum context. More...
 

Constructor & Destructor Documentation

◆ CoordinateCoding()

mpeg7cdva::CoordinateCoding::CoordinateCoding ( const Parameters &  param)

Constructor using the given parameters to set the CsscCoordinateCoding behaviour.

Parameters
paramthe set of parameters to initialize this object.

◆ ~CoordinateCoding()

virtual mpeg7cdva::CoordinateCoding::~CoordinateCoding ( )
virtual

Member Function Documentation

◆ AddImageSample()

int mpeg7cdva::CoordinateCoding::AddImageSample ( FeatureList &  featurelist)

◆ compare()

int mpeg7cdva::CoordinateCoding::compare ( const CoordinateCoding other)

Compare this instance with another one.

Parameters
otherthe other instance.
Returns
0 if equal, or the number of different values if different.

◆ difference()

void mpeg7cdva::CoordinateCoding::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.

◆ 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
histogramCountSizesize of histogram count
histogramMapSizeXsize of histogram map (X)
histogramMapSizeYsize of histogram map (Y)

◆ fromBinary() [1/2]

void mpeg7cdva::CoordinateCoding::fromBinary ( BitInputStream &  reader)

Convert a binary stream into the stored information.

Parameters
readerthe 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
readerthe bitstream reader object.

◆ generateFeatureList()

void mpeg7cdva::CoordinateCoding::generateFeatureList ( FeatureList &  descriptors)

Reconstruction of the original histogram map starting from circular scanning representation.

Parameters
descriptorsreconstructed 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
featurelistlist of keypoints.
numPointsthe 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
featurelistlist of keypoints.
numPointsthe 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
writerthe bitstream writer object.

◆ writeSeparateContext()

int mpeg7cdva::CoordinateCoding::writeSeparateContext ( char *  filename)

Field Documentation

◆ CONTEXT_RANGE

const int mpeg7cdva::CoordinateCoding::CONTEXT_RANGE = 5
static

Sum-based context range.

◆ MAXIMUM_SUM_CONTEXT

const int mpeg7cdva::CoordinateCoding::MAXIMUM_SUM_CONTEXT = (2*CONTEXT_RANGE*CONTEXT_RANGE + CONTEXT_RANGE)
static

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: