Class ApplyImageJMorphologicalOperation
Object
ApplyImageJMorphologicalOperation
Applies an ImageJ (2D) morphological operation to voxels.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryVoxels<UnsignedByteBuffer> applyOperation(BinaryVoxels<UnsignedByteBuffer> voxels, String command, int iterations) Applies a specified morphological operation to the given binary voxels.static voidfill(BinaryVoxels<UnsignedByteBuffer> voxels) Applies the fill operation to the given binary voxels.
-
Method Details
-
fill
Applies the fill operation to the given binary voxels.- Parameters:
voxels- theBinaryVoxelsto fill- Throws:
OperationFailedException- if the operation fails
-
applyOperation
public static BinaryVoxels<UnsignedByteBuffer> applyOperation(BinaryVoxels<UnsignedByteBuffer> voxels, String command, int iterations) throws OperationFailedException Applies a specified morphological operation to the given binary voxels.- Parameters:
voxels- theBinaryVoxelsto apply the operation tocommand- the name of the morphological operation to applyiterations- the number of times to apply the operation- Returns:
- the modified
BinaryVoxels - Throws:
OperationFailedException- if the operation fails or if the binary values are not the default (255 for on, 0 for off)
-