Public Member Functions | |
JunctionHOG () | |
Default Constructor. | |
JunctionHOG (bool normalize, Dims cellDims=Dims(8, 8), bool fixedCells=false, int numOrientations=9, bool signedOrient=false, int numContinuityBins=3, float neighborDistance=1.2F) | |
virtual | ~JunctionHOG () |
Destructor. | |
void | initializeNeighbors (std::vector< Point2D< int > > &neighbors, std::vector< float > &perpAngles, std::vector< float > ¶llelAngles, float angle) |
virtual std::vector< float > | createHistogramFromGradient (const Image< float > &gradmag, const Image< float > &gradang) |
Calculate histogram using a gradient. | |
std::vector< float > | calculateJunctionHistogram (Image< float > gradmag, Image< float > gradang) |
Calculate junction continuity histogram using the gradient. | |
Protected Attributes | |
int | itsContinuityBins |
float | itsNeighborDistance |
Definition at line 53 of file JunctionHOG.H.
JunctionHOG::JunctionHOG | ( | ) |
Default Constructor.
Definition at line 42 of file JunctionHOG.C.
JunctionHOG::~JunctionHOG | ( | ) | [virtual] |
Destructor.
Definition at line 64 of file JunctionHOG.C.
std::vector< float > JunctionHOG::calculateJunctionHistogram | ( | Image< float > | gradmag, | |
Image< float > | gradang | |||
) |
Calculate junction continuity histogram using the gradient.
Definition at line 131 of file JunctionHOG.C.
References HistogramOfGradients::addToBin(), ASSERT, Image< T >::begin(), Image< T >::coordsOk(), FeatureVector::getFeatureVector(), Image< T >::getHeight(), Image< T >::getWidth(), Dims::h(), Point2D< T >::i, HistogramOfGradients::itsCellDims, HistogramOfGradients::itsFixedDims, HistogramOfGradients::itsNormalize, HistogramOfGradients::normalizeFeatureVector(), sqrt(), and Dims::w().
Referenced by createHistogramFromGradient().
std::vector< float > JunctionHOG::createHistogramFromGradient | ( | const Image< float > & | gradmag, | |
const Image< float > & | gradang | |||
) | [virtual] |
Calculate histogram using a gradient.
Reimplemented from HistogramOfGradients.
Definition at line 69 of file JunctionHOG.C.
References calculateJunctionHistogram().