Class ApplyImageJMorphologicalOperation

Object
ApplyImageJMorphologicalOperation

public class ApplyImageJMorphologicalOperation extends Object
Applies an ImageJ (2D) morphological operation to voxels.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    static BinaryVoxels<UnsignedByteBuffer>
    applyOperation(BinaryVoxels<UnsignedByteBuffer> voxels, String command, int iterations)
    Applies a specified morphological operation to the given binary voxels.
    static void
    fill(BinaryVoxels<UnsignedByteBuffer> voxels)
    Applies the fill operation to the given binary voxels.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fill

      public static void fill(BinaryVoxels<UnsignedByteBuffer> voxels) throws OperationFailedException
      Applies the fill operation to the given binary voxels.
      Parameters:
      voxels - the BinaryVoxels to 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 - the BinaryVoxels to apply the operation to
      command - the name of the morphological operation to apply
      iterations - 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)