我要使用这个类,不知道如何下手。

解决方案 »

  1.   

    The Kernel class defines a matrix that describes how a specified pixel and its surrounding pixels affect the value computed for the pixel's position in the output image of a filtering operation. The X origin and Y origin indicate the kernel matrix element that corresponds to the pixel position for which an output value is being computed. 
      

  2.   

    Kernel 类定义了一个矩阵,描述指定的像素及其周围像素如何影响过滤操作输出图像中像素位置的计算值。X 原点和 Y 原点指示 kernel 矩阵元素对应于为其计算输出值的像素位置。
    构造方法摘要 
    Kernel(int width, int height, float[] data) 
              根据 float 数组构造一个 Kernel 对象。 
      方法摘要 
     Object clone() 
              复制此对象。 
     int getHeight() 
              返回此 Kernel 的高度。 
     float[] getKernelData(float[] data) 
              以行优先顺序返回 kernel 数据。 
     int getWidth() 
              返回此 Kernel 的宽度。 
     int getXOrigin() 
              返回此 Kernel 的 X 原点。 
     int getYOrigin() 
              返回此 Kernel 的 Y 原点