Package boofcv.struct.convolve
Class Kernel1D
java.lang.Object
boofcv.struct.convolve.KernelBase
boofcv.struct.convolve.Kernel1D
- Direct Known Subclasses:
Kernel1D_F32
,Kernel1D_F64
,Kernel1D_S32
,KernelContinuous1D_F32
public abstract class Kernel1D extends KernelBase
This is a kernel in a 1D convolution. The kernel's width is the number of elements in it
and must be an odd number. A kernel's radius is defined as the width divided by two.
-
Field Summary
Fields inherited from class boofcv.struct.convolve.KernelBase
offset, width
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
getDimension()
Returns the dimension of this kernel, 1D or 2D.abstract double
getDouble(int index)
abstract void
setD(int index, double value)
Methods inherited from class boofcv.struct.convolve.KernelBase
copy, getRadius, isInteger
-
Constructor Details
-
Kernel1D
protected Kernel1D(int width) -
Kernel1D
protected Kernel1D(int width, int offset) -
Kernel1D
protected Kernel1D()
-
-
Method Details
-
getDimension
public int getDimension()Description copied from class:KernelBase
Returns the dimension of this kernel, 1D or 2D.- Specified by:
getDimension
in classKernelBase
- Returns:
- Kernel's dimension
-
getDouble
public abstract double getDouble(int index) -
setD
public abstract void setD(int index, double value)
-