mrcal-show-residuals-board-observation1
Visualize calibration residuals for one or more observations of a board
Overview
The residuals come from the optimization inputs stored in the cameramodel file. A cameramodel that's missing this data cannot be used with this tool.
To plot the residuals on top of the image used in the calibration the image paths are loaded from the optimization inputs. The paths are used directly, relative to the current directory. If the paths are unavailable or if the image cannot be read, the plot is made without the underlying image.
Options
Positional arguments
model Camera model that contains the optimization_inputsthat describe the solve. The displayed observationsmay come from ANY of the cameras in the solve, notnecessarily the one given by this modelobservations The observations we're looking at. Unless --from-glob,these are a list of integers A and/or A-B ranges. Bydefault these index the board observations in theorder they appear in the solve. If --from-worst, thenwe index them from the worst-fitting to the best-fitting instead. If --from-glob then we treat thestrings as globs to match against the image paths
Optional arguments
-h, --help show this help message and exit--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--vectorscale VECTORSCALEScale all the vectors by this factor. Useful toimprove legibility if the vectors are too small to see--circlescale CIRCLESCALEScale all the plotted circles by this factor. Usefulto improve legibility if the vectors are too big ortoo small--cbmax CBMAX Maximum range of the colorbar. If omitted, weautoscale--from-worst If given, the requested observations index from theworst-fitting observations to the best-fitting(observation 0 is the worst-fitting observation).Exclusive with --from-glob. By default we index theobservations in the order they appear in the solve--from-glob If given, the requested observations are specified asglob(s) matching the image filenames. Exclusive with--from-worst--image-path-prefix IMAGE_PATH_PREFIXIf given, we prepend the given prefix to the imagepaths. Exclusive with --image-directory--image-directory IMAGE_DIRECTORYIf given, we extract the filenames from the imagepaths in the solve, and use the given directory tofind those filenames. Exclusive with --image-path-prefix--hardcopy HARDCOPY Write the output to disk, instead of making aninteractive plot. If given, only ONE observation maybe specified--terminal TERMINAL gnuplotlib terminal. The default is good almostalways, so most people don't need this option--set SET Extra 'set' directives to gnuplotlib. Can be givenmultiple times--unset UNSET Extra 'unset' directives to gnuplotlib. Can be givenmultiple times--explore If given, the tool drops into a REPL before exiting,to allow the user to follow-up with more diagnostics
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)