Class BinaryKernel
Object
org.anchoranalysis.image.voxel.kernel.Kernel
org.anchoranalysis.image.voxel.kernel.BinaryKernel
- Direct Known Subclasses:
AndKernel,BinaryKernelMorphological,ConditionalKernel
public abstract class BinaryKernel extends Kernel
Base class for kernels that return a boolean for every voxel.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedBinaryKernel(int size)Creates with a specific kernel-size. -
Method Summary
Modifier and Type Method Description abstract booleancalculateAt(KernelPointCursor point)Calculates the boolean at a particular point.
-
Constructor Details
-
BinaryKernel
protected BinaryKernel(int size)Creates with a specific kernel-size.- Parameters:
size- the size of the kernel-matrix in one dimension, either X or Y. This size should always be an odd number.
-
-
Method Details
-
calculateAt
Calculates the boolean at a particular point.- Parameters:
point- the point.- Returns:
- the boolean result at this point.
-