Class HasTouchingVoxels

Object
AnchorBean<Feature<FeatureInputPairObjects>>
InitializableBean<Feature<FeatureInputPairObjects>, FeatureInitialization>
Feature<FeatureInputPairObjects>
FeaturePairObjects
TouchingVoxels
HasTouchingVoxels

public class HasTouchingVoxels extends TouchingVoxels
A simple scheme for counting the touching voxels.

A voxel in the second object is 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) intersect. So as not to waste computation-time in useless areas.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    calculateWithIntersection(ObjectMask first, ObjectMask second, 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, setDo3D

    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

    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

    • HasTouchingVoxels

      public HasTouchingVoxels()
  • Method Details

    • calculateWithIntersection

      protected double calculateWithIntersection(ObjectMask first, ObjectMask second, BoundingBox boxIntersect) throws FeatureCalculationException
      Description copied from class: TouchingVoxels
      Calculates the feature value for the intersection of two objects.
      Specified by:
      calculateWithIntersection in class TouchingVoxels
      Parameters:
      first - the first ObjectMask
      second - the second ObjectMask
      boxIntersect - the BoundingBox of the intersection
      Returns:
      the calculated feature value
      Throws:
      FeatureCalculationException - if the calculation fails