Enumerations

class orthority.enums.CameraType(value)

Bases: _StrChoiceEnum

Camera model types.

pinhole = 'pinhole'

Pinhole frame camera model.

brown = 'brown'

Brown-Conrady frame camera model.

Compatible with OpenDroneMap / OpenSfM perspective, simple_radial, radial and brown model parameters, and the 4- and 5-coefficient versions of the OpenCV general model.

fisheye = 'fisheye'

Fisheye frame camera model.

Compatible with OpenDroneMap / OpenSfM fisheye, and OpenCV fisheye model parameters.

opencv = 'opencv'

OpenCV general frame camera model.

rpc = 'rpc'

RPC camera model.

classmethod from_odm(cam_type)

Convert from OpenDroneMap / OpenSfM projection type.

Parameters:

cam_type (str)

class orthority.enums.Interp(value)

Bases: _StrChoiceEnum

Interpolation types.

nearest = 'nearest'

Nearest neighbor interpolation.

average = 'average'

Average input pixels over the corresponding output pixel area (suited to downsampling).

bilinear = 'bilinear'

Bilinear interpolation.

cubic = 'cubic'

Bicubic interpolation.

lanczos = 'lanczos'

Lanczos windowed sinc interpolation.

to_cv()

Convert to OpenCV interpolation type.

Return type:

int

to_rio()

Convert to rasterio resampling type.

Return type:

Resampling

class orthority.enums.Compress(value)

Bases: _StrChoiceEnum

Compression types.

jpeg = 'jpeg'

JPEG compression.

deflate = 'deflate'

Deflate compression.

lzw = 'lzw'

LZW compression.

class orthority.enums.CsvFormat(value)

Bases: Enum

Type of the position and orientation values in a CSV exterior parameter file.

xyz_opk = 1

Projected (x, y, z) position and (omega, phi, kappa) orientation.

xyz_rpy = 2

Projected (x, y, z) position and (roll, pitch, yaw) orientation.

lla_opk = 3

Geographic (latitude, longitude, altitude) position and (omega, phi, kappa) orientation.

lla_rpy = 4

Geographic (latitude, longitude, altitude) position and (roll, pitch, yaw) orientation.

property is_xyz: bool

Whether the format has (x, y, z) position.

property is_opk: bool

Whether the format has (omega, phi, kappa) orientation.

class orthority.enums.RpcRefine(value)

Bases: _StrChoiceEnum

RPC refinement method.

shift = 'shift'

Pixel coordinate translation.

shift_drift = 'shift-drift'

Pixel coordinate scale and translation.

class orthority.enums.Driver(value)

Bases: _StrChoiceEnum

Raster format drivers.

gtiff = 'gtiff'

GeoTIFF.

cog = 'cog'

Cloud Optimised GeoTIFF.