public abstract class CountKernel extends Kernel
Modifier | Constructor and Description |
---|---|
protected |
CountKernel()
Creates with a kernel-size of three.
|
Modifier and Type | Method and Description |
---|---|
int |
calculateAt(KernelPointCursor point)
Calculates the count at a particular point.
|
protected abstract boolean |
doesNeighborVoxelQualify(Point3i point)
Whether a particular neighboring voxel is accepted or not.
|
void |
notifyBuffer(LocalSlices slices,
int sliceIndex)
Called to inform the
Kernel of buffers that are currently being processed. |
public void notifyBuffer(LocalSlices slices, int sliceIndex)
Kernel
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.
notifyBuffer
in class Kernel
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 calculateAt(KernelPointCursor point)
point
- the point.protected abstract boolean doesNeighborVoxelQualify(Point3i point)
point
- the neighboring point which is queried if it qualifies or not.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.