Class FeatureImageMetadata
A base class for a feature that accepts a
FeatureInputImageMetadata as input.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleabstract doublecalculate(ImageMetadata metadata) Calculates the feature-value for a givenImageMetadata.Class<? extends FeatureInput> Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, 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
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
FeatureImageMetadata
public FeatureImageMetadata()
-
-
Method Details
-
calculate
public double calculate(FeatureCalculationInput<FeatureInputImageMetadata> input) throws FeatureCalculationException - Specified by:
calculatein classFeature<FeatureInputImageMetadata>- Throws:
FeatureCalculationException
-
calculate
Calculates the feature-value for a givenImageMetadata.- Parameters:
metadata- the metadata.- Returns:
- the calculated feature-value.
- Throws:
FeatureCalculationException- if the feature-value cannot be calculated.
-
inputType
- Specified by:
inputTypein classFeature<FeatureInputImageMetadata>
-