Package boofcv.struct.convolve
Class KernelBase
java.lang.Object
boofcv.struct.convolve.KernelBase
Base class for all convolution kernels.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
KernelBase
(int width) protected
KernelBase
(int width, int offset) -
Method Summary
Modifier and TypeMethodDescriptionabstract <T extends KernelBase>
Tcopy()
abstract int
Returns the dimension of this kernel, 1D or 2D.int
The radius is defined as the width divided by two.abstract boolean
-
Field Details
-
width
public int widthThe kernel's width. -
offset
public int offsetOffset from array index to spatial index 0, For symmetric kernels with an odd width it is width/2
-
-
Constructor Details
-
KernelBase
protected KernelBase(int width) -
KernelBase
protected KernelBase(int width, int offset) -
KernelBase
protected KernelBase()
-
-
Method Details
-
getRadius
public int getRadius()The radius is defined as the width divided by two.- Returns:
- The kernel's radius.
-
getDimension
public abstract int getDimension()Returns the dimension of this kernel, 1D or 2D.- Returns:
- Kernel's dimension
-
isInteger
public abstract boolean isInteger() -
copy
-