Package boofcv.alg.feature.dense
Class DescribeDenseHogFastAlg<Input extends ImageBase<Input>>
java.lang.Object
boofcv.alg.feature.dense.BaseDenseHog<Input>
boofcv.alg.feature.dense.DescribeDenseHogFastAlg<Input>
A variant on the original Histogram of Oriented Gradients (HOG) [1] in which spatial Gaussian weighting has been omitted, allowing for cell histograms to be computed only once. This results in about a two times speed up.
For a description of standard HOG see DescribeImageDenseHoG. Difference from standard HOG
- No gaussian spatial weighting for each pixel inside a block
- No bilinear interpolation between cell centers
[1] Dalal, Navneet, and Bill Triggs. "Histograms of oriented gradients for human detection." Computer Vision and Pattern Recognition, 2005. CVPR 2005.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class boofcv.alg.feature.dense.BaseDenseHog
derivX, derivY -
Constructor Summary
ConstructorsConstructorDescriptionDescribeDenseHogFastAlg(int orientationBins, int pixelsPerCell, int cellsPerBlockX, int cellsPerBlockY, int stepBlock, ImageType<Input> imageType) Configures HOG descriptor computation -
Method Summary
Modifier and TypeMethodDescriptiongetCell(int row, int col) intintvoidgetDescriptorsInRegion(int pixelX0, int pixelY0, int pixelX1, int pixelY1, List<TupleDesc_F64> output) Convenience function which returns a list of all the descriptors computed inside the specified region in the imagevoidprocess()Computes the descriptor across the input imageMethods inherited from class boofcv.alg.feature.dense.BaseDenseHog
_getDerivX, _getDerivY, createDescription, getCellsPerBlockX, getCellsPerBlockY, getDescriptions, getImageType, getLocations, getOrientationBins, getPixelsPerCell, getRegionWidthPixelX, getRegionWidthPixelY, getStepBlock, setInput
-
Constructor Details
-
DescribeDenseHogFastAlg
public DescribeDenseHogFastAlg(int orientationBins, int pixelsPerCell, int cellsPerBlockX, int cellsPerBlockY, int stepBlock, ImageType<Input> imageType) Configures HOG descriptor computation- Parameters:
orientationBins- Number of bins in a cell's histogram. 9 recommendedpixelsPerCell- Number of pixel's wide a cell is. 8 recommendedcellsPerBlockX- Number of cells's wide a block is. 3 recommendedcellsPerBlockY- Number of cells's wide a block is. 3 recommendedstepBlock- Number of cells which are skipped between each block
-
-
Method Details
-
process
public void process()Computes the descriptor across the input image- Specified by:
processin classBaseDenseHog<Input extends ImageBase<Input>>
-
getDescriptorsInRegion
public void getDescriptorsInRegion(int pixelX0, int pixelY0, int pixelX1, int pixelY1, List<TupleDesc_F64> output) Convenience function which returns a list of all the descriptors computed inside the specified region in the image- Parameters:
pixelX0- Pixel coordinate X-axis lower extentpixelY0- Pixel coordinate Y-axis lower extentpixelX1- Pixel coordinate X-axis upper extentpixelY1- Pixel coordinate Y-axis upper extentoutput- List of descriptions
-
getCellRows
public int getCellRows() -
getCellCols
public int getCellCols() -
getCell
-