.. _convert_pinhole_model:
convert_pinhole_model
---------------------
This tool can be used to approximately convert a pinhole model from one of the
types listed in :numref:`pinholemodels` or an optical bar model
(:numref:`panoramic`) to any other pinhole model type.
This can be convenient, for example, because for the Brown-Conrady and
Photometrix models the distortion operation is iterative and slow, and by
converting to a Tsai or Adjustable Tsai model this operation can be sped up.
This program can also be used to convert a pinhole or optical bar model to a
pinhole model with RPC lens distortion (:numref:`rpc_distortion`), which is a
model where distortion is expressed as a ratio of polynomials.
The degree of the RPC lens distortion can be specified via
``--rpc-degree``. A smaller value is suggested to start with, as
lower-degree polynomials may be easier to interpret.
Usage
~~~~~
::
convert_pinhole_model [options] \
-o