Class HOGFeature
Object
AnchorBean<Feature<FeatureInputStack>>
InitializableBean<Feature<FeatureInputStack>, FeatureInitialization>
Feature<FeatureInputStack>
FeatureStack
HOGFeature
public class HOGFeature
extends FeatureStack
One part of a Histogram
of Oriented Gradients descriptor, as applied to an image stack.
See OpenCV HOGDescriptor documentation for details of implementation.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionHOGFeature(SizeXY resizeTo, int index) Create with a specific size to resize to, and index. -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculate(FeatureCalculationInput<FeatureInputStack> input) voidcheckMisconfigured(BeanInstanceMap defaultInstances) intgetIndex()Which index to return from the HOG descriptor.Parameters used for calculating HOG.SizeXYThe input is rescaled to this width/height before calculating HOG descriptors.voidsetIndex(int index) Which index to return from the HOG descriptor.voidsetParameters(HOGParameters parameters) Parameters used for calculating HOG.voidsetResizeTo(SizeXY resizeTo) The input is rescaled to this width/height before calculating HOG descriptors.Methods inherited from class org.anchoranalysis.image.feature.bean.FeatureStack
inputTypeMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
HOGFeature
public HOGFeature(SizeXY resizeTo, int index) Create with a specific size to resize to, and index.- Parameters:
resizeTo- the size to resize to.index- the index to return from the HOG descriptor.
-
HOGFeature
public HOGFeature()
-
-
Method Details
-
checkMisconfigured
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException - Overrides:
checkMisconfiguredin classAnchorBean<Feature<FeatureInputStack>>- Throws:
BeanMisconfiguredException
-
describeParameters
- Overrides:
describeParametersin classFeature<FeatureInputStack>
-
calculate
protected double calculate(FeatureCalculationInput<FeatureInputStack> input) throws FeatureCalculationException - Specified by:
calculatein classFeature<FeatureInputStack>- Throws:
FeatureCalculationException
-
getResizeTo
public SizeXY getResizeTo()The input is rescaled to this width/height before calculating HOG descriptors. -
setResizeTo
public void setResizeTo(SizeXY resizeTo) The input is rescaled to this width/height before calculating HOG descriptors. -
getParameters
Parameters used for calculating HOG. -
setParameters
Parameters used for calculating HOG. -
getIndex
public int getIndex()Which index to return from the HOG descriptor. -
setIndex
public void setIndex(int index) Which index to return from the HOG descriptor.
-