public class MorphologicalDilation extends Object
Modifier and Type | Method and Description |
---|---|
static BinaryVoxels<UnsignedByteBuffer> |
dilate(BinaryVoxels<UnsignedByteBuffer> voxels,
int iterations,
DilationContext context)
Performs a morphological dilation operation.
|
static ObjectMask |
dilate(ObjectMask object,
Optional<Extent> extent,
boolean useZ,
int iterations,
boolean bigNeighborhood)
Dilates an
ObjectMask , growing the bounding-box as necessary. |
public static ObjectMask dilate(ObjectMask object, Optional<Extent> extent, boolean useZ, int iterations, boolean bigNeighborhood) throws CreateException
ObjectMask
, growing the bounding-box as necessary.object
- the object to dilate.extent
- if present, restricts the object to remain within certain bounds.useZ
- whether to perform dilation in 2D or 3D.iterations
- number of dilations to perform.bigNeighborhood
- if true, uses a big neighborhood, otherwise a small neighborhood, as
defined in NeighborhoodFactory
.iterations
.CreateException
- if the object cannot be successfully dilated.public static BinaryVoxels<UnsignedByteBuffer> dilate(BinaryVoxels<UnsignedByteBuffer> voxels, int iterations, DilationContext context) throws CreateException
voxels
- input-voxels.iterations
- number of dilations.context
- additional parameters for influencing how dilation occurs.CreateException
- if the postcondition cannot be successfully checked.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.