ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/picdiff.cal
Revision: 1.1
Committed: Sat Feb 22 02:07:21 2003 UTC (21 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad3R7P2, rad3R7P1, rad4R1, rad4R0, rad3R5, rad3R6, rad3R6P1, rad3R8, rad3R9
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

# User Rev Content
1 greg 1.1 {
2     Compute difference between luminance of two images.
3     Display towards red where first image is brighter,
4     and towards blue where second image is brighter.
5    
6     29 August 1991
7     }
8     l1=li(1); l2=li(2);
9     avg=(l1+l2)/2;
10     dif=(l1-l2)/2;
11     ro=avg+dif;
12     go=avg-dif*dif/2;
13     bo=avg-dif;