Object
Kernel
Direct Known Subclasses:
BinaryKernel, CountKernel

public abstract class Kernel extends Object
A small matrix that is convolved with or otherwise combined across each voxel in an image.

See Kernel (image processing).

The matrix is assumed always to be 2D and square i.e. the same size in X and Y.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Kernel(int size)
    Creates a kernel with a given size in the X and Y dimensions.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The size of the kernel-matrix in one dimension, either X or Y.
    abstract void
    notifyBuffer(LocalSlices slices, int sliceIndex)
    Called to inform the Kernel of buffers that are currently being processed.

    Methods inherited from class java.lang.Object

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

    • Kernel

      protected Kernel(int size)
      Creates a kernel with a given size in the X and Y dimensions.
      Parameters:
      size - the number of pixels in a given dimension, which must be an odd number.
  • Method Details

    • notifyBuffer

      public abstract void notifyBuffer(LocalSlices slices, int sliceIndex)
      Called to inform the Kernel of buffers that are currently being processed.

      Only a single z-slice is processed at a particular time.

      This should be repeatedly called each time the focus changes to a different z-slice.

      Parameters:
      slices - slices that can be processed by the kernel, localized to a current local area of focus.
      sliceIndex - the global z-index of the slice that is currently the focus of the kernel.
    • getSize

      public int getSize()
      The size of the kernel-matrix in one dimension, either X or Y.

      This size should always be an odd number.