/usr/share/radiance/graypatch.cal is in radiance-materials 4R1+20120125-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {
Generate script of 11x8 sample set of gray patches
on 2000x1600 pixel canvas.
Input is column and row number (starting from 0)
}
col = $1; { input position }
row = $2;
mingray = 0; { reassign if desired }
GAMMA : 2.2;
NCOLS : 11;
NROWS : 8;
XRES : 2000;
YRES : 1600;
MARGIN : 5;
xpatch : floor((XRES-MARGIN)/NCOLS) - MARGIN;
ypatch : floor((YRES-MARGIN)/NROWS) - MARGIN;
textheight : floor(ypatch/7);
xpos = MARGIN + col*(xpatch + MARGIN);
ypos = MARGIN + row*(ypatch + MARGIN);
patchgray = mingray + row*NCOLS + col;
patchvalue = ((patchgray+.5)/256)^GAMMA;
|