MRCAL(1)

πŸ“¦ version 2.1, in ubuntu jammy

πŸ’– MRCAL-TO-CAMERAMODEL πŸ’–

okay bestie, so this is one of the tools from mrcal β€” the camera projection, calibration toolkit β€” and honestly? it's giving "glow-up for your file format." let me put you on. 🫢


✨ NAME ✨

mrcal-to-cameramodel β€” literally just converts your model into the cameramodel file format. that's the whole job. that's the vibe. πŸ’…


🌸 SYNOPSIS 🌸

$ mrcal-to-cameramodel model1.cahvor model2.cahvor
Wrote model1.cameramodel
Wrote model2.cameramodel

see? two files in, two files out, everyone ate. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, the file formats mrcal supports? they're all written up at <http://mrcal.secretsauce.net/cameramodels.html#cameramodel-file-formats> β€” go peek if you're curious, i'll wait. πŸ’œ

this tool converts a given model to the cameramodel file format. and no cap: no changes to the content are made. it is purely a format converter, like changing your outfit, not your whole personality. if what you actually want is to fit a different lens model, that's a whole other tool β€” go use mrcal-convert-lensmodel for that, bestie, it's a different assignment entirely.

you hand it model filenames on the commandline, and it writes output to the same directory, with the same filename, but with a .cameramodel extension. lowkey the most predictable glow-up ever. ✨

and here's the fun part: if you omit the model, or pass it as -, then the input gets read from standard input and the output goes to standard output. pipes? iconic. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

πŸ’« POSITIONAL ARGUMENTS πŸ’«

  • model β€” the input camera model. that's it, that's the one. πŸ“

πŸ’« OPTIONAL ARGUMENTS πŸ’«

  • -h, --help β€” shows this help message and exits. your lil "what does this do again" button. πŸ™ˆ
  • --force, -f β€” by default existing files are not overwritten. pass --force to overwrite them without complaint. it's giving "yes i'm sure, do it." πŸ’…
  • --outdir OUTDIR β€” directory to write the output models into. if you omit it, we write the output models to the same directory as the input models. no surprises, no drama. 🌈

πŸ”— REPOSITORY πŸ”—

<https://www.github.com/dkogan/mrcal>

come hang out, star the repo, it's the main character energy it deserves. ⭐


πŸ‘‘ AUTHOR πŸ‘‘

Dima Kogan, <dima@secretsauce.net> β€” the legend behind all of this. 🫢


Copyright (c) 2017-2021 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
fr fr, read the license, it's the rules of the house. 🏠

okay and that's the whole page!! this was mrcal 2.1, dated 2022-03-16, and yeah β€” MRCAL(1) section, obviously. mwah. πŸ’‹ stay calibrated, bestie. πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from