Class Kernel
Object
Kernel
- Direct Known Subclasses:
BinaryKernel
,CountKernel
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
ConstructorsModifierConstructorDescriptionprotected
Kernel
(int size) Creates a kernel with a given size in the X and Y dimensions. -
Method Summary
Modifier and TypeMethodDescriptionint
getSize()
The size of the kernel-matrix in one dimension, either X or Y.abstract void
notifyBuffer
(LocalSlices slices, int sliceIndex) Called to inform theKernel
of buffers that are currently being processed.
-
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
Called to inform theKernel
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.
-