public class CameraPinhole extends CameraModel implements java.io.Serializable
Intrinsic camera parameters for a pinhole camera. Specifies the calibration matrix K and distortion parameters.
[ fx skew cx ]
K = [ 0 fy cy ]
[ 0 0 1 ]
| 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)
|
static long |
serialVersionUID |
double |
skew
skew parameter, typically 0 (units: pixels)
|
height, width| Constructor and Description |
|---|
CameraPinhole()
Default constructor.
|
CameraPinhole(CameraPinhole param) |
CameraPinhole(double fx,
double fy,
double skew,
double cx,
double cy,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
CameraPinhole |
fsetK(double fx,
double fy,
double skew,
double cx,
double cy,
int width,
int height) |
double |
getCx() |
double |
getCy() |
double |
getFx() |
double |
getFy() |
double |
getSkew() |
void |
print() |
void |
set(CameraPinhole param) |
void |
setCx(double cx) |
void |
setCy(double cy) |
void |
setFx(double fx) |
void |
setFy(double fy) |
void |
setSkew(double skew) |
getHeight, getWidth, setHeight, setWidthpublic static final long serialVersionUID
public double fx
public double fy
public double skew
public double cx
public double cy
public CameraPinhole()
public CameraPinhole(CameraPinhole param)
public CameraPinhole(double fx,
double fy,
double skew,
double cx,
double cy,
int width,
int height)
public CameraPinhole fsetK(double fx, double fy, double skew, double cx, double cy, int width, int height)
public void set(CameraPinhole param)
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 getSkew()
public void setSkew(double skew)
public void print()