Class AtBorderXY

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.FeatureInputSingleObject>
org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
org.anchoranalysis.plugin.image.feature.bean.object.single.border.AtBorderBase
org.anchoranalysis.plugin.image.feature.bean.object.single.border.AtBorderXY

public class AtBorderXY
extends AtBorderBase
Checks if an object's bounding box is at the border of the image in the XY plane.

This feature returns 1.0 if the object's bounding box touches any of the X or Y borders of the image, and 0.0 otherwise.

  • Constructor Summary

    Constructors 
    Constructor Description
    AtBorderXY()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean isBoundingBoxAtBorder​(org.anchoranalysis.spatial.box.BoundingBox boundingBox, org.anchoranalysis.spatial.box.Extent extent)
    Checks if the bounding box of an object is at the border of the image.

    Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.border.AtBorderBase

    calculate

    Methods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject

    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

    checkMisconfigured, 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

  • Method Details

    • isBoundingBoxAtBorder

      protected boolean isBoundingBoxAtBorder​(org.anchoranalysis.spatial.box.BoundingBox boundingBox, org.anchoranalysis.spatial.box.Extent extent)
      Description copied from class: AtBorderBase
      Checks if the bounding box of an object is at the border of the image.
      Specified by:
      isBoundingBoxAtBorder in class AtBorderBase
      Parameters:
      boundingBox - the BoundingBox of the object
      extent - the Extent of the image
      Returns:
      true if the bounding box is at the border, false otherwise