j2d
Class SpatialCorrelation
java.lang.Object
j2d.SpatialCorrelation
public class SpatialCorrelation
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpatialCorrelation
public SpatialCorrelation()
main
public static void main(java.lang.String[] args)
spatialCorrelationTestWorks
public static void spatialCorrelationTestWorks()
templateCorrelation
public static java.awt.Image templateCorrelation(java.awt.Image template,
java.awt.Image scene)
binaryTemplateTest
public static void binaryTemplateTest()
spatialCorrelationTest
public static void spatialCorrelationTest()
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
correlate
public static double correlate(float[][] tmpltArray,
short[][] sceneArray,
float[][] outputArray)