Class Intersection
Finds the intersection of two objects and calculates a feature on it
- 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 -
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculates a value for some input.void
checkMisconfigured
(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.double
The number of dilations and erosions to apply to determine if two objects intersectvoid
setEmptyValue
(double emptyValue) void
setIterations
(MorphologicalIterations iterations) The number of dilations and erosions to apply to determine if two objects intersectMethods 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
describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
Intersection
public Intersection()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBean
Checks that a bean's properties conform to expectations.- Overrides:
checkMisconfigured
in classAnchorBean<Feature<FeatureInputPairObjects>>
- Parameters:
defaultInstances
- all available default instances if theDefaultInstance
annotation is used- Throws:
BeanMisconfiguredException
- if the bean has not been configured properly as XML
-
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.
-
getIterations
The number of dilations and erosions to apply to determine if two objects intersect -
setIterations
The number of dilations and erosions to apply to determine if two objects intersect -
getEmptyValue
public double getEmptyValue() -
setEmptyValue
public void setEmptyValue(double emptyValue)
-