![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.ima.util.Correl
public class Correl
Implements the inter-correlation displacement field computation between two images.
Nested Class Summary | |
---|---|
static class |
Correl.Displacement
Defines a local displacement |
Constructor Summary | |
---|---|
Correl(int[] ima0,
int[] ima1,
int width,
int height,
int wsize,
int hsize)
Constructs a correlation operator between two images. |
Method Summary | |
---|---|
double[] |
getAffine()
Returns a least-square affine approximation of the displacement field. |
int |
getCorr(int ij0,
int ij1)
Gets the correlation error between two locations. |
Correl.Displacement |
getDisplacement(int ij0,
int ij1)
Gets the displacement between two locations. |
Correl.Displacement[] |
getDisplacements()
Gets the displacement buffer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Correl(int[] ima0, int[] ima1, int width, int height, int wsize, int hsize)
ima0
- Left RGB buffer.ima1
- Right RGB buffer.width
- Images width.height
- Images height.wsize
- Correlation window width.hsize
- [optional, default is wsize] Correlation window height.Method Detail |
---|
public double[] getAffine()
public int getCorr(int ij0, int ij1)
ij0
- Index ij0 = i0 + width * j0 of the location (i0, j0) in Image 0.ij1
- Index ij1 = i1 + width * j1 of the location (i1, j1) in Image 1.
public Correl.Displacement getDisplacement(int ij0, int ij1)
ij0
- Index ij0 = i0 + width * j0 of the location (i0, j0) in Image 0.ij1
- Index ij1 = i1 + width * j1 of the location (i1, j1) in Image 1.
public Correl.Displacement[] getDisplacements()
. _ wsize _ hsize 2 . > > ||I0[x0+x,y0+y] - I1[x1+dx(x0,y0)+x,y1+dy(x0,y0)+y]|| . - x=-wsize - y=-hsizewhere ||ima[x,y]|| is the RGB standard norm.