easyidp.reconstruct.Calibration#
- class easyidp.reconstruct.Calibration(sensor=None)#
The base class for camera lens distortion calibration
- __init__(sensor=None)#
Methods
Attributes
the calibration model from which reconstruction software, in ["pix4d", "metashape"],
<class 'str'>
the calibration type, same as the sensor.type, in [frame, fisheye, spherical, rpc], by default 'frame'
the object of the camera model (sensor),
Sensor
focal length, unit is pixel, for pix4d project, convert mm to pixel.
principle point offset, unit is pixel.
principle point offset, unit is pixel.
affinity and non-orthogonality (skew) coefficients (in pixels) [metashape use only]
affinity and non-orthogonality (skew) coefficients (in pixels) [metashape use only]
len distortion coefficient, different between pix4d and metashape, please check below for more details
len distortion coefficient
len distortion coefficient
len distortion coefficient
Tangential Lens Distortion Coefficients, for Pix4D.
Tangential Lens Distortion Coeffs
Tangential Lens Distortion Coeffs
Tangential Lens Distortion Coeffs
Tangential Lens Distortion Coefficients, for Metashape.
Tangential Lens Distortion Coeffs
Tangential Lens Distortion Coeffs
Tangential Lens Distortion Coeffs
- b1#
affinity and non-orthogonality (skew) coefficients (in pixels) [metashape use only]
- b2#
affinity and non-orthogonality (skew) coefficients (in pixels) [metashape use only]
- calibrate(u, v)#
Convert undistorted images -> original image pixel coordinate
- パラメータ:
u (ndarray) -- the x pixel coordinate after R transform
v (ndarray) -- the y pixel coordinate after R transform
- 戻り値:
the pixel coordinate on the original image
- 戻り値の型:
xb, yb
注釈
The calculation formular can be references by :
参照
- cx#
principle point offset, unit is pixel.
注釈
In the older version of metashape, Cx and Cy were given in pixels from the top-left corner of the image. But in the latest release version they are measured as offset from the image center. Reference: https://www.agisoft.com/forum/index.php?topic=5827.0`
- cy#
principle point offset, unit is pixel.
- f#
focal length, unit is pixel, for pix4d project, convert mm to pixel.
<class 'float'>
- k1#
len distortion coefficient, different between pix4d and metashape, please check below for more details
pix4d
: Symmetrical Lens Distortion Coeffsmetashape
: radial distortion coefficients (dimensionless)
- k2#
len distortion coefficient
- k3#
len distortion coefficient
- k4#
len distortion coefficient
- p1#
Tangential Lens Distortion Coefficients, for Metashape.
注釈
pix4d
: Tangential Lens Distortion Coeffs, use Tmetashape
: tangential distortion coefficient, use P
- p2#
Tangential Lens Distortion Coeffs
- p3#
Tangential Lens Distortion Coeffs
- p4#
Tangential Lens Distortion Coeffs
- software#
the calibration model from which reconstruction software, in ["pix4d", "metashape"],
<class 'str'>
- t1#
Tangential Lens Distortion Coefficients, for Pix4D.
注釈
pix4d
: Tangential Lens Distortion Coeffs, use Tmetashape
: tangential distortion coefficient, use P
- t2#
Tangential Lens Distortion Coeffs
- t3#
Tangential Lens Distortion Coeffs
- t4#
Tangential Lens Distortion Coeffs
- type#
the calibration type, same as the sensor.type, in [frame, fisheye, spherical, rpc], by default 'frame'