STIRA  0.1
Public Member Functions | List of all members
stira::imageanalysis::HOG Class Reference

Class to compute Image descriptor based on Histogram of Orientated Gradients (HOG) for gray-level images References: - https://software.intel.com/en-us/node/529070. More...

#include <HOG.h>

Public Member Functions

 HOG (Image *pImage, common::RectangularROI< int > myRoi, int cellWidth, int cellHeight, int nrBins)
 constructor More...
 
void ComputeHogDescriptor (std::vector< double > &descriptorValues)
 computes the HOG descriptor for the given ROI image More...
 
ImageVisualizeHogDescriptor (std::vector< double > &descriptorValues, int winWidth, int winHeight, double scaleFactor, double viz_factor)
 visualization of HOG descriptor method More...
 

Detailed Description

Class to compute Image descriptor based on Histogram of Orientated Gradients (HOG) for gray-level images References: - https://software.intel.com/en-us/node/529070.

Constructor & Destructor Documentation

stira::imageanalysis::HOG::HOG ( Image pImage,
common::RectangularROI< int >  myRoi,
int  cellWidth,
int  cellHeight,
int  nrBins 
)

constructor

Parameters
pImageinput image
myRoiRegion of Interest to compute descriptor for (currently not used; HOG descriptor is computed for whole image)
cellWidthwidth of single cell in HOG
cellHeightheight of single cell in HOG
nrBinsnumber of bins for orientation histogram in single cell ;

References stira::imagedata::OrientationGrid::GetOrientationVector(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::OrientationGrid::SetAngle(), and stira::imagedata::OrientationGrid::SetMagnitude().

Member Function Documentation

void stira::imageanalysis::HOG::ComputeHogDescriptor ( std::vector< double > &  descriptorValues)

computes the HOG descriptor for the given ROI image

Parameters
descriptorValuesoutput vector containing the output descriptor values

References stira::common::MathUtils::NormalizeVector().

Image * stira::imageanalysis::HOG::VisualizeHogDescriptor ( std::vector< double > &  descriptorValues,
int  winWidth,
int  winHeight,
double  scaleFactor,
double  viz_factor 
)

visualization of HOG descriptor method

Parameters
descriptorValuesvector containing the descriptor values to be visualized
winWidthwidth of window to be visualized
winHeightheight of window to be visualized
scaleFactorfactor to scale whole visualization grid
viz_factorfactor to stretch the line of the HOG per cell with for easier visualization

References stira::imagedata::Image::Clone(), stira::imagetools::DrawImageTools::DrawLine(), and stira::imagetools::DrawImageTools::DrawRectangle().


The documentation for this class was generated from the following files: