Class NumberTouchingVoxels
A scheme for counting touching voxels.
A voxel in the second object is deemed touching if it has 4-connectivity with a voxel on the exterior of the first-object (source)
In practice, we do this only where the bounding-boxes (dilated by 1 pixels) intersection, so as to reduce computation-time.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculateWithIntersection(ObjectMask object1, ObjectMask object2, BoundingBox boxIntersect) Calculates the feature value for the intersection of two objects.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.pair.touching.TouchingVoxels
calculate, createCountKernelMask, createParameters, isDo3D, setDo3DMethods inherited from class org.anchoranalysis.image.feature.bean.object.pair.FeaturePairObjects
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
-
NumberTouchingVoxels
public NumberTouchingVoxels()
-
-
Method Details
-
calculateWithIntersection
protected double calculateWithIntersection(ObjectMask object1, ObjectMask object2, BoundingBox boxIntersect) throws FeatureCalculationException Description copied from class:TouchingVoxelsCalculates the feature value for the intersection of two objects.- Specified by:
calculateWithIntersectionin classTouchingVoxels- Parameters:
object1- the firstObjectMaskobject2- the secondObjectMaskboxIntersect- theBoundingBoxof the intersection- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException- if the calculation fails
-