public class AndKernel extends BinaryKernel
BinaryKernel
s so that they only a true value exists only at a point where
both kernels return true.
This implements a logical and operator.
Constructor and Description |
---|
AndKernel(BinaryKernel kernel1,
BinaryKernel kernel2)
Create for the two kernels.
|
Modifier and Type | Method and Description |
---|---|
boolean |
calculateAt(KernelPointCursor point)
Calculates the boolean at a particular point.
|
void |
notifyBuffer(LocalSlices slices,
int sliceIndex)
Called to inform the
Kernel of buffers that are currently being processed. |
public AndKernel(BinaryKernel kernel1, BinaryKernel kernel2)
kernel1
- the first kernel.kernel2
- the second kernel.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 boolean calculateAt(KernelPointCursor point)
BinaryKernel
calculateAt
in class BinaryKernel
point
- the point.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.