math.numerics
Class ConvolutionUtils

java.lang.Object
  extended by math.numerics.ConvolutionUtils

public class ConvolutionUtils
extends java.lang.Object


Constructor Summary
ConvolutionUtils()
           
 
Method Summary
static double[] convolution(double[] f, double[] k)
          This is a brute force (i.e.
static short[][] convolve(short[][] f, float[][] k)
           
static short[][] convolve2(short[][] f, float[][] k)
           
static short[][] convolveBrute2(short[][] f, float[][] k)
           
static short[][] convolveBruteForce(short[][] f, float[][] k)
           
static short[][] convolveNoEdge(short[][] f, float[][] k)
           
static short[][] convolveNoEdge2(short[][] f, float[][] k)
           
static int cx(int x, int width)
           
static int cy(int y, int height)
           
static short[][] geometricMeanBruteForce(short[][] f, float[][] k)
           
static void main(java.lang.String[] args)
           
static void oddTest()
           
static void testCxCy()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvolutionUtils

public ConvolutionUtils()
Method Detail

oddTest

public static void oddTest()

testCxCy

public static void testCxCy()

cx

public static int cx(int x,
                     int width)

cy

public static int cy(int y,
                     int height)

geometricMeanBruteForce

public static short[][] geometricMeanBruteForce(short[][] f,
                                                float[][] k)

convolveBruteForce

public static short[][] convolveBruteForce(short[][] f,
                                           float[][] k)

convolve

public static short[][] convolve(short[][] f,
                                 float[][] k)

convolveNoEdge

public static short[][] convolveNoEdge(short[][] f,
                                       float[][] k)

convolveBrute2

public static short[][] convolveBrute2(short[][] f,
                                       float[][] k)

convolve2

public static short[][] convolve2(short[][] f,
                                  float[][] k)

convolveNoEdge2

public static short[][] convolveNoEdge2(short[][] f,
                                        float[][] k)

convolution

public static double[] convolution(double[] f,
                                   double[] k)
This is a brute force (i.e. slow) convolution between f and the kernel, k, using wrap-around as a policy.

Parameters:
f -
k -
Returns:
sliding dot product with a wrap around.

main

public static void main(java.lang.String[] args)