Class NumberVoxelsAtBorder

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.OutlineKernelBase
org.anchoranalysis.plugin.image.feature.bean.object.single.border.NumberVoxelsAtBorder

public class NumberVoxelsAtBorder
extends OutlineKernelBase
Calculates the number of voxels at the border of an object.

This feature applies an outline kernel to the object and counts the number of voxels that are part of the object's border.

  • Constructor Summary

    Constructors 
    Constructor Description
    NumberVoxelsAtBorder()  
  • Method Summary

    Modifier and Type Method Description
    protected double calculateWithParameters​(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.voxel.kernel.KernelApplicationParameters parameters, org.anchoranalysis.core.functional.checked.CheckedSupplier<org.anchoranalysis.feature.energy.EnergyStack,​org.anchoranalysis.feature.calculate.FeatureCalculationException> energyStack)
    Calculates the feature value using the specified parameters.
    static int numberBorderPixels​(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.voxel.kernel.KernelApplicationParameters parameters)
    Calculates the number of border voxels for a given object.

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

    calculate, isDo3D, isIgnoreAtThreshold, isOutsideAtThreshold, setDo3D, setIgnoreAtThreshold, setOutsideAtThreshold

    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

    • calculateWithParameters

      protected double calculateWithParameters​(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.voxel.kernel.KernelApplicationParameters parameters, org.anchoranalysis.core.functional.checked.CheckedSupplier<org.anchoranalysis.feature.energy.EnergyStack,​org.anchoranalysis.feature.calculate.FeatureCalculationException> energyStack) throws org.anchoranalysis.feature.calculate.FeatureCalculationException
      Description copied from class: OutlineKernelBase
      Calculates the feature value using the specified parameters.
      Specified by:
      calculateWithParameters in class OutlineKernelBase
      Parameters:
      object - the ObjectMask to calculate the feature on
      parameters - the KernelApplicationParameters for applying the kernel
      energyStack - a supplier for the EnergyStack
      Returns:
      the calculated feature value
      Throws:
      org.anchoranalysis.feature.calculate.FeatureCalculationException - if the calculation fails
    • numberBorderPixels

      public static int numberBorderPixels​(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.voxel.kernel.KernelApplicationParameters parameters)
      Calculates the number of border voxels for a given object.
      Parameters:
      object - the ObjectMask to analyze
      parameters - the KernelApplicationParameters for applying the kernel
      Returns:
      the number of voxels at the border of the object