Package boofcv.alg.feature.dense
Class BaseDenseHog<I extends ImageBase<I>>
java.lang.Object
boofcv.alg.feature.dense.BaseDenseHog<I>
- Direct Known Subclasses:
DescribeDenseHogAlg
,DescribeDenseHogFastAlg
Base calss for dense HOG implementations.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseDenseHog
(int orientationBins, int pixelsPerCell, int cellsPerBlockX, int cellsPerBlockY, int stepBlock, ImageType<I> imageType) Configures HOG descriptor computation -
Method Summary
Modifier and TypeMethodDescriptionint
int
List of descriptorsList of locations for each descriptor.int
int
int
Returns the number of pixel's wide the square region is that a descriptor was computed fromint
int
abstract void
process()
void
Specifies input image.
-
Field Details
-
derivX
-
derivY
-
-
Constructor Details
-
BaseDenseHog
protected BaseDenseHog(int orientationBins, int pixelsPerCell, int cellsPerBlockX, int cellsPerBlockY, int stepBlock, ImageType<I> 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. x-axis 3 recommendedcellsPerBlockY
- Number of cells's wide a block is. x-axis 3 recommendedstepBlock
- Number of cells which are skipped between each block
-
-
Method Details
-
setInput
Specifies input image. Gradient is computed immediately- Parameters:
input
- input image
-
process
public abstract void process() -
getLocations
List of locations for each descriptor. -
getDescriptions
List of descriptors -
_getDerivX
-
_getDerivY
-
getRegionWidthPixelX
public int getRegionWidthPixelX()Returns the number of pixel's wide the square region is that a descriptor was computed from- Returns:
- number of pixels wide
-
getRegionWidthPixelY
public int getRegionWidthPixelY() -
getPixelsPerCell
public int getPixelsPerCell() -
getCellsPerBlockX
public int getCellsPerBlockX() -
getCellsPerBlockY
public int getCellsPerBlockY() -
getStepBlock
public int getStepBlock() -
getOrientationBins
public int getOrientationBins() -
getImageType
-
createDescription
-