j2d
Class SpatialCorrelationOld

java.lang.Object
  extended by j2d.SpatialCorrelationOld

public class SpatialCorrelationOld
extends java.lang.Object

Copyright 2005, DocJava, Inc. User: dlyon Date: Mar 6, 2006 Time: 2:17:58 PM


Constructor Summary
SpatialCorrelationOld()
           
 
Method Summary
static double correlatebad(int wi, int tW, int hi, int tH, float[][] rt, short[][] ri, float[][] ro)
           
static java.awt.Image getSpatialCorrelation(java.awt.Image templateImage, java.awt.Image sceneImage)
          Correlate imag1 with img2 and return the new image.
static short[][] getSpatialCorrelation(short[][] a, short[][] b)
          Correlate imag1 with img2 and return the new image.
static java.awt.Image getSpatialCorrelationGood(java.awt.Image img1, java.awt.Image img2)
          Correlate imag1 with img2 and return the new image.
static java.awt.Image getSpatialCorrelationOld(java.awt.Image templateImage, java.awt.Image sceneImage)
          Correlate imag1 with img2 and return the new image.
static java.awt.Image getSpatialCorrelationPFA(java.awt.Image img2, java.awt.Image img1)
           
static void main(java.lang.String[] args)
           
static void testRotate180()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialCorrelationOld

public SpatialCorrelationOld()
Method Detail

main

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

getSpatialCorrelation

public static java.awt.Image getSpatialCorrelation(java.awt.Image templateImage,
                                                   java.awt.Image sceneImage)
Correlate imag1 with img2 and return the new image. This is very slow correlation, but it works well.

Parameters:
templateImage -
sceneImage -
Returns:
correlation output

correlatebad

public static double correlatebad(int wi,
                                  int tW,
                                  int hi,
                                  int tH,
                                  float[][] rt,
                                  short[][] ri,
                                  float[][] ro)

getSpatialCorrelation

public static short[][] getSpatialCorrelation(short[][] a,
                                              short[][] b)
Correlate imag1 with img2 and return the new image. This is very slow correlation, but it works well.

Returns:
correlation output

getSpatialCorrelationOld

public static java.awt.Image getSpatialCorrelationOld(java.awt.Image templateImage,
                                                      java.awt.Image sceneImage)
Correlate imag1 with img2 and return the new image. This is very slow correlation, but it works well.

Parameters:
templateImage -
sceneImage -
Returns:
correlation output

getSpatialCorrelationGood

public static java.awt.Image getSpatialCorrelationGood(java.awt.Image img1,
                                                       java.awt.Image img2)
Correlate imag1 with img2 and return the new image. This is very slow correlation, but it works well.

Parameters:
img1 -
img2 -
Returns:
correlation output

getSpatialCorrelationPFA

public static java.awt.Image getSpatialCorrelationPFA(java.awt.Image img2,
                                                      java.awt.Image img1)

testRotate180

public static void testRotate180()