Class AtBorderXY
Object
AnchorBean<Feature<FeatureInputSingleObject>>
InitializableBean<Feature<FeatureInputSingleObject>, FeatureInitialization>
Feature<FeatureInputSingleObject>
FeatureSingleObject
AtBorderBase
AtBorderXY
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisBoundingBoxAtBorder(BoundingBox boundingBox, 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
calculateMethods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
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, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
AtBorderXY
public AtBorderXY()
-
-
Method Details
-
isBoundingBoxAtBorder
protected boolean isBoundingBoxAtBorder(BoundingBox boundingBox, Extent extent) Description copied from class:AtBorderBaseChecks if the bounding box of an object is at the border of the image.- Specified by:
isBoundingBoxAtBorderin classAtBorderBase- Parameters:
boundingBox- theBoundingBoxof the objectextent- theExtentof the image- Returns:
- true if the bounding box is at the border, false otherwise
-