public class DescribeDenseHogFastAlg<Input extends boofcv.struct.image.ImageBase> extends BaseDenseHog<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
[1] Dalal, Navneet, and Bill Triggs. "Histograms of oriented gradients for human detection." Computer Vision and Pattern Recognition, 2005. CVPR 2005.
| Modifier and Type | Class and Description |
|---|---|
static class |
DescribeDenseHogFastAlg.Cell |
derivX, derivY| Constructor and Description |
|---|
DescribeDenseHogFastAlg(int orientationBins,
int pixelsPerCell,
int cellsPerBlockX,
int cellsPerBlockY,
int stepBlock,
boofcv.struct.image.ImageType<Input> imageType)
Configures HOG descriptor computation
|
| Modifier and Type | Method and Description |
|---|---|
DescribeDenseHogFastAlg.Cell |
getCell(int row,
int col) |
int |
getCellCols() |
int |
getCellRows() |
void |
getDescriptorsInRegion(int pixelX0,
int pixelY0,
int pixelX1,
int pixelY1,
java.util.List<TupleDesc_F64> output)
Convenience function which returns a list of all the descriptors computed inside the specified region in the image
|
void |
process()
Computes the descriptor across the input image
|
_getDerivX, _getDerivY, createDescription, getCellsPerBlockX, getCellsPerBlockY, getDescriptions, getImageType, getLocations, getOrientationBins, getPixelsPerCell, getRegionWidthPixelX, getRegionWidthPixelY, getStepBlock, setInputpublic DescribeDenseHogFastAlg(int orientationBins,
int pixelsPerCell,
int cellsPerBlockX,
int cellsPerBlockY,
int stepBlock,
boofcv.struct.image.ImageType<Input> imageType)
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 blockpublic void process()
process in class BaseDenseHog<Input extends boofcv.struct.image.ImageBase>public void getDescriptorsInRegion(int pixelX0,
int pixelY0,
int pixelX1,
int pixelY1,
java.util.List<TupleDesc_F64> output)
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 descriptionspublic int getCellRows()
public int getCellCols()
public DescribeDenseHogFastAlg.Cell getCell(int row, int col)