![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.ima.util.RgbFilter
imp.ima.util.Rectification
public class Rectification
Defines the rectification algorithm on RGB or channel buffers.
. x<-(H[0] x + H[1] y + H[2])/(H[6] x + H[7] y + H[8]) . y<-(H[3] x + H[4] y + H[5])/(H[6] x + H[7] y + H[8])If the matrix is of size 3x2 the denominator is omitted.
Constructor Summary | |
---|---|
Rectification(double[] H)
Constructs a rectification function. |
Method Summary | |
---|---|
static double[] |
points2H(int x,
int y,
int w,
int h,
int width,
int height)
Returns the collineation defined by a rectangle. |
static double[] |
points2H(int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int x4,
int y4,
int width,
int height)
Returns the collineation defined by a quadrilateral. |
Methods inherited from class imp.ima.util.RgbFilter |
---|
filterChannel, getChannel, getChannel, getRGB, getRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rectification(double[] H)
Method Detail |
---|
public static double[] points2H(int x, int y, int w, int h, int width, int height)
public static double[] points2H(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int width, int height)