public class IntrinsicParameters
extends java.lang.Object
implements java.io.Serializable
Intrinsic camera parameters for a calibrated camera. Specifies the calibration matrix K and distortion parameters.
[ fx skew cx ]
K = [ 0 fy cy ]
[ 0 0 1 ]
Radial and Tangental Distortion:
xd = xn + xn[k1 r2 + ... + kn r2n] + dx
dxu = [ 2t1 u v + t2(r2 + 2u2)]
dxv = [ t1(r2 + 2v2) + 2 t2 u v]
r2 = u2 + v2
where xd is the distorted coordinates, xn=(u,v) is undistorted normalized image coordinates.
Pixel coordinates are found x = K*[u;v]
| Modifier and Type | Field and Description |
|---|---|
double |
cx
image center (units: pixels)
|
double |
cy
image center (units: pixels)
|
double |
fx
focal length along x and y axis (units: pixels)
|
double |
fy
focal length along x and y axis (units: pixels)
|
int |
height
image shape (units: pixels)
|
double[] |
radial
radial distortion parameters
|
static long |
serialVersionUID |
double |
skew
skew parameter, typically 0 (units: pixels)
|
double |
t1
tangential distortion parameters
|
double |
t2
tangential distortion parameters
|
int |
width
image shape (units: pixels)
|
| Constructor and Description |
|---|
IntrinsicParameters()
Default constructor.
|
IntrinsicParameters(double fx,
double fy,
double skew,
double cx,
double cy,
int width,
int height) |
IntrinsicParameters(IntrinsicParameters param) |
| Modifier and Type | Method and Description |
|---|---|
IntrinsicParameters |
fsetK(double fx,
double fy,
double skew,
double cx,
double cy,
int width,
int height) |
IntrinsicParameters |
fsetRadial(double... radial) |
IntrinsicParameters |
fsetTangental(double t1,
double t2) |
double |
getCx() |
double |
getCy() |
double |
getFx() |
double |
getFy() |
int |
getHeight() |
double[] |
getRadial() |
double |
getSkew() |
double |
getT1() |
double |
getT2() |
int |
getWidth() |
boolean |
isDistorted()
If true then distortion parameters are specified.
|
void |
print() |
void |
set(IntrinsicParameters param) |
void |
setCx(double cx) |
void |
setCy(double cy) |
void |
setFx(double fx) |
void |
setFy(double fy) |
void |
setHeight(int height) |
void |
setRadial(double[] radial) |
void |
setSkew(double skew) |
void |
setT1(double t1) |
void |
setT2(double t2) |
void |
setWidth(int width) |
public static final long serialVersionUID
public int width
public int height
public double fx
public double fy
public double skew
public double cx
public double cy
public double[] radial
public double t1
public double t2
public IntrinsicParameters()
public IntrinsicParameters(IntrinsicParameters param)
public IntrinsicParameters(double fx,
double fy,
double skew,
double cx,
double cy,
int width,
int height)
public IntrinsicParameters fsetK(double fx, double fy, double skew, double cx, double cy, int width, int height)
public IntrinsicParameters fsetRadial(double... radial)
public IntrinsicParameters fsetTangental(double t1, double t2)
public void set(IntrinsicParameters param)
public boolean isDistorted()
public double getCx()
public void setCx(double cx)
public double getCy()
public void setCy(double cy)
public double getFx()
public void setFx(double fx)
public double getFy()
public void setFy(double fy)
public double[] getRadial()
public void setRadial(double[] radial)
public double getSkew()
public void setSkew(double skew)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public double getT1()
public void setT1(double t1)
public double getT2()
public void setT2(double t2)
public void print()