LIGHT_CORRECT(1)
π LIGHT_CORRECT(1) β the general commands manual bestie edition π
okay so you found the light_correct page in the General Commands Manual, and honestly? it's giving "quiet little tool that fixes your whole photo shoot." no cap. let's get into it. π
β¨ NAME β¨
light_correct β correct illumination errors on set of images π¦
β¨ SYNOPSIS β¨
light_correct grey image1 image2 image3 ...
β¨ DESCRIPTION β¨
so the vibe is this: the first argument has to be an image of a piece of grey card. everything after it? those are the images that were taken with the same lighting set-up and that need correcting. periodt. π
the corrected images get written out to files prefixed with ic_. iconic behavior, honestly.
okay let's do the example because examples eat every time. imagine you've got a directory with these files in it:
example% ls
dat1.1.v dat1.2.v dat2.1.v dat2.2.v dat3.1.v dat3.2.v
dat4.1.v dat4.2.v grey.v
then you run light_correct like this:
example% light_correct grey.v dat*.v
and boom, you get this:
example% ls
dat1.1.v dat1.2.v dat2.1.v dat2.2.v dat3.1.v dat3.2.v
dat4.1.v dat4.2.v grey.v
ic_dat1.1.v ic_dat1.2.v ic_dat2.1.v ic_dat2.2.v ic_dat3.1.v
ic_dat3.2.v ic_dat4.1.v ic_dat4.2.v
the ic_ prefix did that. you're welcome. π
πΈ so how does it actually work though πΈ
light_correct works by smoothing out the grey card image, finding grey-mean/pixel for each point, and then multiplying the result by all the following images. that's the whole trick. it's lowkey elegant. β¨
it also removes any .desc files it generates, so you don't get problems with im_global_balance(3). not it creating drama with another function. π
β¨ RETURN VALUE β¨
returns 0 on success and non-zero on error. classic. π«Ά
β¨ SEE ALSO β¨
β¨ COPYRIGHT β¨
The National Gallery and Birkbeck College, 1989-1996.
π friendly reminder bestie: that first arg is the grey card and everything else gets the ic_ glow-up. get the order wrong and you're just correcting a grey card against a pile of photos. π
okay that's the whole page!! mwah π β this was LIGHT_CORRECT(1) from the General Commands Manual, dated 14 Oct 1996, and it lives in the light_correct source/version that shipped with it. go fix those illumination errors, you absolute icon ππβ
π¦ where this page comes from
- ubuntu jammy: libvips-tools 8.12.1-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms