public class HOGFeature extends FeatureStack
See OpenCV HOGDescriptor documentation for details of implementation.
Constructor and Description |
---|
HOGFeature() |
HOGFeature(SizeXY resizeTo,
int index)
Create with a specific size to resize to, and index.
|
Modifier and Type | Method and Description |
---|---|
protected double |
calculate(FeatureCalculationInput<FeatureInputStack> input)
Calculates a value for some input.
|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
String |
describeParameters()
A human-readable description of the parameterization of the bean.
|
int |
getIndex()
Which index to return from the HOG descriptor.
|
HOGParameters |
getParameters()
Parameters used for calculating HOG.
|
SizeXY |
getResizeTo()
The input is rescaled to this width/height before calculating HOG descriptors.
|
void |
setIndex(int index)
Which index to return from the HOG descriptor.
|
void |
setParameters(HOGParameters parameters)
Parameters used for calculating HOG.
|
void |
setResizeTo(SizeXY resizeTo)
The input is rescaled to this width/height before calculating HOG descriptors.
|
inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public HOGFeature(SizeXY resizeTo, int index)
resizeTo
- the size to resize to.index
- the index to return from the HOG descriptor.public HOGFeature()
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<Feature<FeatureInputStack>>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic String describeParameters()
Feature
describeParameters
in class Feature<FeatureInputStack>
protected double calculate(FeatureCalculationInput<FeatureInputStack> input) throws FeatureCalculationException
Feature
calculate
in class Feature<FeatureInputStack>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.public SizeXY getResizeTo()
public void setResizeTo(SizeXY resizeTo)
public HOGParameters getParameters()
public void setParameters(HOGParameters parameters)
public int getIndex()
public void setIndex(int index)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.