MRCAL(1)
π 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--forceto 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. π«Ά
π LICENSE AND COPYRIGHT π
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
- ubuntu jammy: mrcal 2.1-5build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms