Class Merged
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<Feature<T>,FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<FeatureInputPairObjects>
org.anchoranalysis.image.feature.bean.object.pair.FeaturePairObjects
org.anchoranalysis.image.feature.bean.object.pair.FeatureDeriveFromPair
org.anchoranalysis.image.feature.bean.object.pair.Merged
public class Merged extends FeatureDeriveFromPair
Evaluates a feature on the merged object created from a pair of objects.
This class extends FeatureDeriveFromPair to specifically calculate a feature value for
the merged object created from both objects in a pair.
- 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
Constructors Constructor Description Merged()Merged(Feature<FeatureInputSingleObject> item)Creates a new instance that will evaluate the given feature on the merged object of a pair. -
Method Summary
Modifier and Type Method Description doublecalculate(FeatureCalculationInput<FeatureInputPairObjects> input)Methods inherited from class org.anchoranalysis.image.feature.bean.object.pair.FeatureDeriveFromPair
getItem, setItem, valueFromFirst, valueFromMerged, valueFromSecondMethods inherited from class org.anchoranalysis.image.feature.bean.object.pair.FeaturePairObjects
inputTypeMethods 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
-
Method Details
-
calculate
public double calculate(FeatureCalculationInput<FeatureInputPairObjects> input) throws FeatureCalculationException- Specified by:
calculatein classFeature<FeatureInputPairObjects>- Throws:
FeatureCalculationException
-