mrcal commandline tools

A number of commandline tools are available for common tasks, obviating the need to write any code. The available tools, with links to their manpages:

Calibration

Visualization

Camera model manipulation

  • mrcal-to-cahvor: Converts a model stored in the native .cameramodel file format to the .cahvor format. This exists for compatibility only, and does not touch the data: any lens model may be used
  • mrcal-to-cameramodel: Converts a model stored in the .cahvor file format to the .cameramodel format. This exists for compatibility only, and does not touch the data: any lens model may be used
  • mrcal-convert-lensmodel: Fits the behavior of one lens model to another
  • mrcal-graft-models: Combines the intrinsics of one cameramodel with the extrinsics of another

Image and point reprojection

  • mrcal-reproject-image: Given image(s) and lens model(s), produces a new set of images that observe the same scene with a different model. Several flavors of functionality are included here, such as undistortion-to-pinhole, re-rotation, and remapping to infinity.
  • mrcal-reproject-points: Given two lens models and a set of pixel coodinates, maps them from one lens model to the other

Miscellaneous utilities