mrcal-show-distortion-off-pinhole1
Visualize the behavior or a lens model
Usage
projection
Overview
This tool is used to examine how a lens model behaves. Depending on the model, the vectors could be very large or very small, and we can scale them by passing '--vectorscale s'. By default we sample in a 60x40 grid, but this spacing can be controlled by passing '--gridn w h'.
By default we render a heat map of the lens effects. We can also see the vectorfield by passing in --vectorfield. Or we can see the radial distortion curve by passing --radial
Options
Positional arguments
model Input camera model. If "-' is given, we read standardinput
Optional arguments
-h, --help show this help message and exit--gridn GRIDN GRIDN How densely we should sample the imager. By default wereport a 60x40 grid--vectorscale VECTORSCALEScale the vectors by this factor. Default is 1.0(report the truth), but this is often too small to see--radial Show the radial distortion scale factor instead of acolormap/vectorfield--vectorfield Plot the diff as a vector field instead of as a heatmap. The vector field contains more information(magnitude AND direction), but is less clear at aglance--show-fisheye-projectionsIf given, the radial plots include the behavior ofcommon fisheye projections, in addition to thebehavior of THIS lens--cbmax CBMAX Maximum range of the colorbar--title TITLE Title string for the plot. Overrides the defaulttitle. Exclusive with --extratitle--extratitle EXTRATITLEAdditional string for the plot to append to thedefault title. Exclusive with --title--hardcopy HARDCOPY Write the output to disk, instead of making aninteractive plot--terminal TERMINAL gnuplotlib terminal. The default is good almostalways, so most people don't need this option--set SET Extra 'set' directives to pass to gnuplotlib. May begiven multiple times--unset UNSET Extra 'unset' directives to pass to gnuplotlib. May begiven multiple times
Repository
<https://www.github.com/dkogan/mrcal>
License and copyright
Copyright (c) 2017-2023 California Institute of Technology ("Caltech"). U.S. Government sponsorship acknowledged. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)