Class ThresholderSimpleFillHoles2D
Object
AnchorBean<VoxelsThresholder>
InitializableBean<VoxelsThresholder, NullInitialization>
NullParametersBean<VoxelsThresholder>
Thresholder
ThresholderSimpleFillHoles2D
public class ThresholderSimpleFillHoles2D
extends Thresholder
A thresholder that applies a simple intensity threshold and then fills holes in 2D.
This thresholder first applies an intensity threshold to create a binary image, and then uses ImageJ's "fill" morphological operation to fill holes in each 2D slice.
-
Constructor Summary
ConstructorsConstructorDescriptionThresholderSimpleFillHoles2D(int minIntensity) Creates a newThresholderSimpleFillHoles2Dinstance. -
Method Summary
Modifier and TypeMethodDescriptionintThe minimum intensity value for thresholding.voidsetMinIntensity(int minIntensity) The minimum intensity value for thresholding.BinaryVoxels<UnsignedByteBuffer> threshold(VoxelsUntyped inputBuffer, BinaryValuesByte binaryValues, Optional<Histogram> histogram, Optional<ObjectMask> objectMask) Methods inherited from class org.anchoranalysis.image.bean.threshold.Thresholder
threshold, thresholdMethods inherited from class org.anchoranalysis.bean.NullParametersBean
initializeRecursive, onInitialization, onInitializationMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ThresholderSimpleFillHoles2D
public ThresholderSimpleFillHoles2D() -
ThresholderSimpleFillHoles2D
public ThresholderSimpleFillHoles2D(int minIntensity) Creates a newThresholderSimpleFillHoles2Dinstance.- Parameters:
minIntensity- The minimum intensity value for thresholding.Voxels with intensity greater than or equal to this value are considered foreground.
-
-
Method Details
-
threshold
-
getMinIntensity
public int getMinIntensity()The minimum intensity value for thresholding.Voxels with intensity greater than or equal to this value are considered foreground.
-
setMinIntensity
public void setMinIntensity(int minIntensity) The minimum intensity value for thresholding.Voxels with intensity greater than or equal to this value are considered foreground.
-