Class AtBorderZ
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.AtBorderZ
public class AtBorderZ extends AtBorderBase
Checks if an object's bounding box is at the border of the image in the Z dimension.
This feature returns 1.0 if the object's bounding box touches either the top or bottom Z-plane of the image, and 0.0 otherwise.
Note: This feature is only meaningful for 3D images. For 2D images, it will always return 1.0 as the object will always touch both Z borders in a single-slice image.
-
Constructor Summary
Constructors Constructor Description AtBorderZ() -
Method Summary
Modifier and Type Method Description protected booleanisBoundingBoxAtBorder(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
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, isInitialized
-
Constructor Details
-
AtBorderZ
public AtBorderZ()
-
-
Method Details
-
isBoundingBoxAtBorder
protected boolean isBoundingBoxAtBorder(org.anchoranalysis.spatial.box.BoundingBox boundingBox, org.anchoranalysis.spatial.box.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
-