Class Second
Evaluates a feature on the second object in a pair of objects.
This class extends FeatureDeriveFromPair
to specifically calculate a feature value for
the second object in a pair, ignoring the first object.
- Author:
- Owen Feehan
-
Field Summary
Fields inherited from class org.anchoranalysis.image.feature.bean.object.pair.FeatureDeriveFromPair
CACHE_NAME_FIRST, CACHE_NAME_MERGED, CACHE_NAME_SECOND
-
Constructor Summary
ConstructorsConstructorDescriptionSecond()
Creates a new instance that will evaluate the given feature on the second object of a pair. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculates a value for some input.Methods inherited from class org.anchoranalysis.image.feature.bean.object.pair.FeatureDeriveFromPair
getItem, setItem, valueFromFirst, valueFromMerged, valueFromSecond
Methods inherited from class org.anchoranalysis.image.feature.bean.object.pair.FeaturePairObjects
inputType
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
Second
Creates a new instance that will evaluate the given feature on the second object of a pair.- Parameters:
item
- the feature to be evaluated on the second object
-
Second
public Second()
-
-
Method Details
-
calculate
public double calculate(FeatureCalculationInput<FeatureInputPairObjects> input) throws FeatureCalculationException Description copied from class:Feature
Calculates a value for some input.- Specified by:
calculate
in classFeature<FeatureInputPairObjects>
- Parameters:
input
- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException
- if the calculation cannot successfully complete.
-