Class Intersection
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputPairObjects>
org.anchoranalysis.image.feature.bean.object.pair.FeaturePairObjects
org.anchoranalysis.image.feature.bean.object.pair.FeatureDeriveFromPair
org.anchoranalysis.plugin.image.feature.bean.object.pair.Intersection
public class Intersection
extends org.anchoranalysis.image.feature.bean.object.pair.FeatureDeriveFromPair
Finds the intersection of two objects and calculates a feature on it
- Author:
- Owen Feehan
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Intersection() -
Method Summary
Modifier and Type Method Description doublecalculate(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputPairObjects> input)voidcheckMisconfigured(org.anchoranalysis.bean.BeanInstanceMap defaultInstances)doublegetEmptyValue()MorphologicalIterationsgetIterations()The number of dilations and erosions to apply to determine if two objects intersectvoidsetEmptyValue(double emptyValue)voidsetIterations(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, 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, isInitialized
-
Constructor Details
-
Intersection
public Intersection()
-
-
Method Details
-
checkMisconfigured
public void checkMisconfigured(org.anchoranalysis.bean.BeanInstanceMap defaultInstances) throws org.anchoranalysis.bean.exception.BeanMisconfiguredException- Overrides:
checkMisconfiguredin classorg.anchoranalysis.bean.AnchorBean<org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputPairObjects>>- Throws:
org.anchoranalysis.bean.exception.BeanMisconfiguredException
-
calculate
public double calculate(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputPairObjects> input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
calculatein classorg.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputPairObjects>- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
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)
-