TCA_CORRECT("1")

✨ NAME ✨

okay so this is tca_correct from the HUGIN gang β€” it calculates transverse chromatic aberration πŸ’… no cap, that's the whole job.


πŸŽ€ SYNOPSIS πŸŽ€

tca_correct [options] inputfile

bestie listen, <inputfile> is not one file, it's the base name for 4 image files, and you gotta know all of them:

  • <inputfile> β€” the colour file you're computing TCA parameters from 🌈
  • red_<inputfile> β€” the red channel of <inputfile>
  • green_<inputfile> β€” the green channel of <inputfile>
  • blue_<inputfile> β€” the blue channel of <inputfile>

k so the channel images must be colour images with 3 identical channels, fr fr, that's non-negotiable.

but like… if you pass any of -R, -G, or -B, then that file name gets used instead of the derived name. so you can override the whole name situation. iconic behaviour honestly 🫢

Output: commandline arguments for fulla πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it generates fulla command-line parameters for correction of transverse chromatic aberration (TCA) from sample photos. that's the vibe.

and if you wanna know what makes a good sample photo β€” the dream scenario would be one with a lot of contrast over the entire image area, little saturated colour, and no blown highlights. lowkey picky but honestly she's right 😭


πŸ’œ OPTIONS πŸ’œ

  • -h β€” display help, the classic. always start here bestie πŸŽ€
  • -l β€” the input file is a PTO file instead of an image, plot twist
  • -m method β€” optimization method (0 normal, 1 newfit). pick your fighter ✨
  • -o optvars β€” string of variables to optimize ("abcvde"). yes that exact string, character for character πŸ”₯
  • -r β€” reset values (this will zero a,b,c,d,e params and set v to 10) β€” and heads up, this only makes sense with the -l option ⚠️
  • -s <scale> β€” scale for corner detection
  • -n <number> β€” number of points per grid cell (default: 10)
  • -g <number> β€” divide image in <number>x*<number>* grid cells (default: 10)
  • -t num β€” remove all control points with an error higher than num pixels (default: 1.5)
  • -v β€” verbose. she talks more. we love her for it πŸ’¬
  • --save-into-database β€” saves the tca data into Hugin lens database πŸ‘‘
  • -w filename β€” write PTO file
  • -R <r> β€” use this file as red channel
  • -G <g> β€” use this file as green channel
  • -B <b> β€” use this file as blue channel
quick reminder: those -R / -G / -B ones are the file names that replace the derived red_ / green_ / blue_ names β€” don't forget or you'll be confused later, iykyk πŸ™ˆ

🌸 AUTHORS 🌸

written by Pablo d'Angelo and others πŸ’– absolute legends, all of them.


and that's the tea, bestie πŸ“ this was Version: 2025.0.1, dated 2026-09-22 β€” go forth and de-aberrate those transverses πŸ’…βœ¨

πŸ“¦ where this page comes from