public abstract class Kernel extends Object
See Kernel (image processing).
The matrix is assumed always to be 2D and square i.e. the same size in X and Y.
Modifier | Constructor and Description |
---|---|
protected |
Kernel(int size)
Creates a kernel with a given size in the X and Y dimensions.
|
Modifier and Type | Method and Description |
---|---|
int |
getSize()
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. |
protected Kernel(int size)
size
- the number of pixels in a given dimension, which must be an odd number.public abstract void notifyBuffer(LocalSlices slices, int sliceIndex)
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.
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.public int getSize()
This size should always be an odd number.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.