Orthority interior parameters¶
This is the native Orthority format for frame camera interior parameters. It is a YAML file containing a nested dictionary based on the OpenDroneMap / OpenSfM cameras.json format. The root level consists of one or more camera ID keys and the corresponding parameter dictionary values. Parameter dictionaries define parameter name - value pairs for a camera. The basic layout is:
camera 1 ID:
# camera 1 parameters:
name 1: value 1
# ...
name N: value N
# ...
camera N ID:
# camera N parameters:
name 1: value 1
# ...
name N: value N
Camera IDs can be used in exterior parameters to refer to a specific camera in multi-camera setups (e.g. with the camera field in CSV and Orthority exterior parameter files), and should be unique. Parameter names and value descriptions are as follows:
Name |
Value |
|---|---|
|
Camera type ( |
|
Image |
|
Focal length(s) with the same units/scale as |
|
Optional sensor |
|
Optional principal point offsets in normalised image coordinates. Values default to zero if not supplied. |
|
Optional distortion coefficients for the camera |
Available frame camera types and their distortion coefficients are detailed below:
|
Coefficients |
Description |
|---|---|---|
|
Pinhole camera model with no distortion. |
|
|
|
Brown-Conrady lens distortion compatible with OpenDroneMap / OpenSfM |
|
|
Fisheye lens distortion Compatible with OpenDroneMap / OpenSfM, and OpenCV |
|
|
OpenCV general camera model. Partial or special cases of the model can be specified by omitting some or all of the coefficients. E.g. if no distortion coefficients are specified, this model corresponds to |
From the API perspective, the type parameter specifies which FrameCamera subclass to use. The remaining parameters correspond to __init__() arguments for that class.
An example of a valid YAML file defining two cameras:
Pinhole camera:
type: pinhole
im_size: [150, 200]
focal_len: 120. # focal length in mm
sensor_size: [75., 100.] # sensor size in mm
cx: -0.01
cy: 0.02
Brown camera:
type: brown
im_size: [400, 300]
focal_len: 0.8333 # normalised & unitless focal length
cx: -0.01
cy: 0.02
k1: -0.25
k2: 0.2
p1: 0.01
p2: 0.01
k3: -0.1