1LIGHT_CORRECT(1) General Commands Manual LIGHT_CORRECT(1)
2
3
4
6 light_correct - correct illumination errors on set of images
7
9 light_correct grey image1 image2 image3 ...
10
12 The first argument should be an image of a piece of grey card, subse‐
13 quent arguments should be images taken with the same lighting set-up
14 which need correcting. The corrected images are written to files pre‐
15 fixed with "ic_".
16
17 For example, suppose you have a directory with the following files in:
18
19 example% ls
20 dat1.1.v dat1.2.v dat2.1.v dat2.2.v dat3.1.v dat3.2.v
21 dat4.1.v dat4.2.v grey.v
22
23 then run light_correct like this:
24
25 example% light_correct grey.v dat*.v
26
27 to generate this:
28
29 example% ls
30 dat1.1.v dat1.2.v dat2.1.v dat2.2.v dat3.1.v dat3.2.v
31 dat4.1.v dat4.2.v grey.v
32 ic_dat1.1.v ic_dat1.2.v ic_dat2.1.v ic_dat2.2.v ic_dat3.1.v
33 ic_dat3.2.v ic_dat4.1.v ic_dat4.2.v
34
35 light_correct works by smoothing out the grey card image, finding grey-
36 mean/pixel for each point, and then multiplying the result by all the
37 following images. It also removes any .desc files it generates, to
38 avoid problems with im_global_balance(3).
39
40
42 returns 0 on success and non-zero on error.
43
45 header(1), vips(1)
46
48 The National Gallery and Birkbeck College, 1989-1996.
49
50
51
52 14 Oct 1996 LIGHT_CORRECT(1)