Class NumberVoxelsAtBorder
Object
AnchorBean<Feature<FeatureInputSingleObject>>
InitializableBean<Feature<FeatureInputSingleObject>, FeatureInitialization>
Feature<FeatureInputSingleObject>
FeatureSingleObject
OutlineKernelBase
NumberVoxelsAtBorder
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculateWithParameters(ObjectMask object, KernelApplicationParameters parameters, CheckedSupplier<EnergyStack, FeatureCalculationException> energyStack) Calculates the feature value using the specified parameters.static intnumberBorderPixels(ObjectMask object, 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, setOutsideAtThresholdMethods 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
-
NumberVoxelsAtBorder
public NumberVoxelsAtBorder()
-
-
Method Details
-
calculateWithParameters
protected double calculateWithParameters(ObjectMask object, KernelApplicationParameters parameters, CheckedSupplier<EnergyStack, FeatureCalculationException> energyStack) throws FeatureCalculationException Description copied from class:OutlineKernelBaseCalculates the feature value using the specified parameters.- Specified by:
calculateWithParametersin classOutlineKernelBase- Parameters:
object- theObjectMaskto calculate the feature onparameters- theKernelApplicationParametersfor applying the kernelenergyStack- a supplier for theEnergyStack- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException- if the calculation fails
-
numberBorderPixels
public static int numberBorderPixels(ObjectMask object, KernelApplicationParameters parameters) Calculates the number of border voxels for a given object.- Parameters:
object- theObjectMaskto analyzeparameters- theKernelApplicationParametersfor applying the kernel- Returns:
- the number of voxels at the border of the object
-