| 1 | greg | 1.2 | .\" RCSid "$Id$" | 
| 2 | greg | 1.1 | .TH PEXTREM 1 11/15/93 RADIANCE | 
| 3 |  |  | .SH NAME | 
| 4 |  |  | pextrem - find minimum and maximum values in RADIANCE picture | 
| 5 |  |  | .SH SYNOPSIS | 
| 6 |  |  | .B pextrem | 
| 7 |  |  | [ | 
| 8 |  |  | .B \-o | 
| 9 |  |  | ] | 
| 10 |  |  | [ | 
| 11 |  |  | picture | 
| 12 |  |  | ] | 
| 13 |  |  | .SH DESCRIPTION | 
| 14 |  |  | .I Pextrem | 
| 15 |  |  | locates the minimum and maximum values for the input | 
| 16 |  |  | .I picture, | 
| 17 |  |  | and prints their pixel locations and color values. | 
| 18 |  |  | The first line printed contains the x and y pixel location | 
| 19 |  |  | (x measured from the left margin, y measured from the bottom), | 
| 20 |  |  | followed by the red, green and blue values. | 
| 21 |  |  | The second line printed contains the same information for the | 
| 22 |  |  | maximum value. | 
| 23 |  |  | .PP | 
| 24 |  |  | The | 
| 25 |  |  | .I \-o | 
| 26 |  |  | option prints the original (radiance) values, undoing any exposure | 
| 27 |  |  | or color correction done on the picture. | 
| 28 |  |  | .PP | 
| 29 |  |  | If no input | 
| 30 |  |  | .I picture | 
| 31 |  |  | is given, the standard input is read. | 
| 32 |  |  | .SH AUTHOR | 
| 33 |  |  | Greg Ward | 
| 34 |  |  | .SH BUGS | 
| 35 |  |  | The luminance value is used for comparison of pixels, although in | 
| 36 |  |  | certain anomolous cases (ie. highly saturated colors) it is possible that | 
| 37 |  |  | .I pextrem | 
| 38 |  |  | will not pick the absolute minimum or maximum luminance value. | 
| 39 |  |  | This is because a fast integer-space comparison is used. | 
| 40 |  |  | A more reliable floating-point comparison would be slower by | 
| 41 |  |  | an order of magnitude. | 
| 42 |  |  | .SH "SEE ALSO" | 
| 43 |  |  | falsecolor(1), getinfo(1), pcomb(1), pcompos(1), pextrem(1), pfilt(1), | 
| 44 |  |  | pflip(1), protate(1), psign(1), rpict(1), ximage(1) |