Class Intersection

Object
AnchorBean<Feature<FeatureInputPairObjects>>
InitializableBean<Feature<FeatureInputPairObjects>, FeatureInitialization>
Feature<FeatureInputPairObjects>
FeaturePairObjects
FeatureDeriveFromPair
Intersection

public class Intersection extends FeatureDeriveFromPair
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    calculate(FeatureCalculationInput<FeatureInputPairObjects> input)
     
    void
    checkMisconfigured(BeanInstanceMap defaultInstances)
     
    double
     
    The number of dilations and erosions to apply to determine if two objects intersect
    void
    setEmptyValue(double emptyValue)
     
    void
    The number of dilations and erosions to apply to determine if two objects intersect

    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

    describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Intersection

      public Intersection()
  • Method Details

    • checkMisconfigured

      public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
      Overrides:
      checkMisconfigured in class AnchorBean<Feature<FeatureInputPairObjects>>
      Throws:
      BeanMisconfiguredException
    • calculate

      public double calculate(FeatureCalculationInput<FeatureInputPairObjects> input) throws FeatureCalculationException
      Specified by:
      calculate in class Feature<FeatureInputPairObjects>
      Throws:
      FeatureCalculationException
    • getIterations

      public MorphologicalIterations getIterations()
      The number of dilations and erosions to apply to determine if two objects intersect
    • setIterations

      public void setIterations(MorphologicalIterations iterations)
      The number of dilations and erosions to apply to determine if two objects intersect
    • getEmptyValue

      public double getEmptyValue()
    • setEmptyValue

      public void setEmptyValue(double emptyValue)