Class KernelBase

java.lang.Object
boofcv.struct.convolve.KernelBase
Direct Known Subclasses:
Kernel1D, Kernel2D

public abstract class KernelBase extends Object
Base class for all convolution kernels.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Offset from array index to spatial index 0, For symmetric kernels with an odd width it is width/2
    int
    The kernel's width.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    KernelBase(int width)
     
    protected
    KernelBase(int width, int offset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract <T extends KernelBase>
    T
     
    abstract int
    Returns the dimension of this kernel, 1D or 2D.
    int
    The radius is defined as the width divided by two.
    abstract boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • width

      public int width
      The kernel's width.
    • offset

      public int offset
      Offset 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

      public abstract <T extends KernelBase> T copy()