public class Intersection extends FeatureDeriveFromPair
CACHE_NAME_FIRST, CACHE_NAME_MERGED, CACHE_NAME_SECOND
Constructor and Description |
---|
Intersection() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<FeatureInputPairObjects> input)
Calculates a value for some input.
|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
double |
getEmptyValue() |
MorphologicalIterations |
getIterations()
The number of dilations and erosions to apply to determine if two objects intersect
|
void |
setEmptyValue(double emptyValue) |
void |
setIterations(MorphologicalIterations iterations)
The number of dilations and erosions to apply to determine if two objects intersect
|
getItem, setItem, valueFromFirst, valueFromMerged, valueFromSecond
inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<Feature<FeatureInputPairObjects>>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic double calculate(FeatureCalculationInput<FeatureInputPairObjects> input) throws FeatureCalculationException
Feature
calculate
in class Feature<FeatureInputPairObjects>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.public MorphologicalIterations getIterations()
public void setIterations(MorphologicalIterations iterations)
public double getEmptyValue()
public void setEmptyValue(double emptyValue)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.