Class Kernel1D_F32


@Generated("boofcv.struct.convolve.Kernel1D_F64")
public class Kernel1D_F32
extends Kernel1D
Floating point 1D convolution kernel that extends Kernel1D.

WARNING: Do not modify. Automatically generated by boofcv.struct.convolve.GenerateKernel1D.

  • Field Summary

    Fields
    Modifier and Type Field Description
    float[] data  

    Fields inherited from class boofcv.struct.convolve.KernelBase

    offset, width
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected Kernel1D_F32()  
      Kernel1D_F32​(float[] data, int width)
    Creates a new kernel whose initial values are specified by "data" and length is "width".
      Kernel1D_F32​(float[] data, int width, int offset)
    Creates a kernel with elements equal to 'data' and with the specified 'width' plus 'offset'
      Kernel1D_F32​(int width)
    Create a kernel with elements initialized to zero.
      Kernel1D_F32​(int width, int offset)
    Create a kernel whose elements initialized to zero.
  • Method Summary

    Modifier and Type Method Description
    float computeSum()  
    Kernel1D_F32 copy()  
    float get​(int i)  
    float[] getData()  
    double getDouble​(int index)  
    boolean isInteger()  
    void print()  
    void setD​(int index, double value)  
    static Kernel1D_F32 wrap​(float[] data, int width, int offset)
    Creates a kernel whose elements are the specified data array and has the specified width.

    Methods inherited from class boofcv.struct.convolve.Kernel1D

    getDimension

    Methods inherited from class boofcv.struct.convolve.KernelBase

    getRadius

    Methods inherited from class java.lang.Object

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

    • data

      public float[] data
  • Constructor Details

    • Kernel1D_F32

      public Kernel1D_F32​(float[] data, int width)
      Creates a new kernel whose initial values are specified by "data" and length is "width". The offset will be set to width/2
      Parameters:
      data - The value of the kernel. Not modified. Reference is not saved.
      width - The kernels width.
    • Kernel1D_F32

      public Kernel1D_F32​(float[] data, int width, int offset)
      Creates a kernel with elements equal to 'data' and with the specified 'width' plus 'offset'
      Parameters:
      data - The value of the kernel. Not modified. Reference is not saved.
      width - The kernels width.
      offset - Location of the origin in the array
    • Kernel1D_F32

      public Kernel1D_F32​(int width)
      Create a kernel with elements initialized to zero. Offset is automatically set to width/2.
      Parameters:
      width - How wide the kernel is.
    • Kernel1D_F32

      public Kernel1D_F32​(int width, int offset)
      Create a kernel whose elements initialized to zero.
      Parameters:
      width - How wide the kernel is.
      offset - Location of the origin in the array
    • Kernel1D_F32

      protected Kernel1D_F32()
  • Method Details

    • getDouble

      public double getDouble​(int index)
      Specified by:
      getDouble in class Kernel1D
    • setD

      public void setD​(int index, double value)
      Specified by:
      setD in class Kernel1D
    • wrap

      public static Kernel1D_F32 wrap​(float[] data, int width, int offset)
      Creates a kernel whose elements are the specified data array and has the specified width.
      Parameters:
      data - The array who will be the kernel's data. Reference is saved.
      width - The kernel's width.
      offset - Location of the origin in the array
      Returns:
      A new kernel.
    • copy

      public Kernel1D_F32 copy()
      Specified by:
      copy in class KernelBase
    • isInteger

      public boolean isInteger()
      Specified by:
      isInteger in class KernelBase
    • get

      public float get​(int i)
    • computeSum

      public float computeSum()
    • getData

      public float[] getData()
    • print

      public void print()