forked from lucasfilm/openexr-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
using.html
176 lines (165 loc) · 11.8 KB
/
using.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>OpenEXR</title>
<script src="popUp.js" language="javascript"> </script>
</head>
<body background="images/exr_bkg2.jpg" bgcolor="#000000" leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 alink="#00FFFF" link="#33ffFF" vlink="#33ffFF" text="#999999">
<STYLE>
body {font-family: Verdana, Arial, Helvetica, sans-serif; color:999999;}
b {font-family: Verdana, Arial, Helvetica, sans-serif;}
td {font-family: Verdana, Arial, Helvetica, sans-serif; color:999999;}
table {font-family: Verdana, Arial, Helvetica, sans-serif;}
p {font-family: Verdana, Arial, Helvetica, sans-serif; color:999999;}
a {font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none;}
h5 {font-family: Verdana, Arial, Helvetica, sans-serif; color:cccccc;}
</STYLE>
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="270" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="left"><a href="index.html"><img src="images/exr_logo2.jpg" width="255" height="234" alt="" border="0"></a></td>
</tr>
<tr>
<td valign="top"><!-- begin navigation -->
<table width="182" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/spacer.gif" width="142" height="5" alt="" border="0"></td>
<td><img src="images/spacer.gif" width="42" height="5" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="index.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">Home</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="about.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">About OpenEXR</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="samples.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">OpenEXR samples</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right" bgcolor="#202B2F"><a href="using.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">Using exrdisplay</font></a><br><br>
<a href="#controls" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1" color="#009999">Revealing More Detail -</font></a><br>
<a href="#modify" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1" color="#009999">Displaying the Image -</font></a><br><br>
</td>
<td bgcolor="#202B2F"><img src="images/arrow.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="documentation.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">Documentation</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="downloads.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">Downloads</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="license.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">License</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="links.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">Related links</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
<tr>
<td align="right"><a href="mailinglist.html" style="text-decoration: none;"><font face="Arial,Helvetica,sans-serif" size="1">Mailing lists</font></a></td>
<td><img src="images/spacer.gif" width="42" height="28" alt="" border="0"></td>
</tr>
</table></td>
<td width="80" valign="top"><img src="images/spacer.gif" width="80" height="2" alt="" border="0"></td>
</tr>
</table><!-- end navigation --></td>
<td width="500" valign="top" bgcolor="#000000">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<br></br>
<br></br>
<br></br>
</tr>
<tr>
<td valign="top" bgcolor="#870F33"><img src="images/spacer.gif" width="10" height="1" alt="" border="0"></td>
</tr>
<tr>
<td valign="top">
<!-- begin content -->
<p> </p>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<p><h5><a name="controls">Revealing More Detail in OpenEXR Images</a></h5>
<p>This section gives a short tutorial on using the <i>exrdisplay</i> program, which is included with the OpenEXR software distribution.
<p>You can reveal more detail in OpenEXR images by changing the exposure using the <b>Exposure</b> slider.
This operation is analogous to changing the exposure of a piece of film, lightening or darkening the image to reveal more detail at the high or low end.
<p>With <i>exrdisplay</i>, however, changing the exposure does not affect image data itself, it simply changes the way that the original 16-bit floating-point pixel values in the image are converted to 8-bit integer data in the frame buffer. We call the original 16-bit FP pixels the "raw" image data, and the converted 8-bit pixels the "cooked" image data. When you change the exposure, you are "re-cooking" the data.
<!-- <p><a href="exposure.html" style="text-decoration: none;">Click here for a detailed explanation of exposure.</a> -->
<p>For example, in the following image you can see the light areas (fog) very
clearly but in the dark areas (rock closest to camera) the detail is too dark to
see. By changing the exposure to positive 3 (taking the image up 3 stops)
the detail in the dark areas becomes visible. However, you lose the detail in
the light areas because it is now too bright to see.
<p>
<table width="100%" bgcolor="#666666">
<tr valign="top" bgcolor="#333333">
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>Original image<br>0 exposure</b><br></font></td>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>Same image<br>Exposure adjusted to positive 3</b><br></font></td>
</tr>
<tr valign="top">
<td align="center"><a href="javascript:OpenWinMed('view_02.html')"><img src="images/viewer_02_sm.jpg" width="195" height="137" border="0" alt=""></a></td>
<td align="center"><a href="javascript:OpenWinMed('view_03.html')"><img src="images/viewer_03_sm.jpg" width="195" height="137" border="0" alt=""></a></td>
</tr>
<tr valign="top" bgcolor="#333333">
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#"><a href="javascript:OpenWinMed('view_02.html')" style="text-decoration: none;">(click for larger image)</a></font></td>
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#"><a href="javascript:OpenWinMed('view_03.html')" style="text-decoration: none;">(click for larger image)</a></font></td>
</tr>
</table>
<p align="right"><a href="#top" style="text-decoration: none;"><img src="images/top.gif" width="45" height="26" alt="back to top" border="0"></a></p>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<p><h5><a name="modify">How Your Image Is Displayed</a></h5>
<p>The Viewer has other sliders that you can use to specify how your 16-bit OpenEXR
image is displayed on your 8-bit monitor:
<ul><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<li><b>Exposure</b> - sets the apparent exposure of the image on the display. It lightens or darkens the displayed image, allowing you to reveal detail in the high or low end.
<li><b>Defog</b> - subtracted from pixel values to compensate for fogging due to stray light in the recording device.
<li><b>kneeHigh and kneeLow</b> - pixel values between kneeHigh and kneeLow set the white level of the displayed image, determining which value is mapped to the maximum intensity of the monitor (<i>exrdisplay</i> lets you set the white level between 3.5 and 7 f-stops above middle gray).
</ul>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<p>The actual process for conversion from raw data to data ready for the display card happens
like this (as taken from comments from the exrdisplay source code):
<ol><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<li>Compensate for fogging by subtracting
defog from the raw pixel values.
<li>Multiply the defogged pixel values
by 2<sup>(exposure + 2.47393)</sup>.
<li>Values, which are now 1.0, are called "middle gray." If defog
and exposure are both set to 0.0, then middle gray corresponds to a raw pixel
value of 0.18. In step 6, middle gray values will be mapped to an intensity
3.5 f-stops below the display's maximum intensity.
<li>Apply a knee function. The knee
function has two
parameters, kneeLow and kneeHigh. Pixel values
below 2<sup>kneeLow</sup> are not changed by the knee
function. Pixel values above kneeLow are lowered
according to a logarithmic curve, such that the
value 2<sup>kneeHigh</sup> is mapped to 2<sup>3.5</sup> (in step 6,
this value will be mapped to the display's
maximum intensity).
<li>Gamma-correct the pixel values,
assuming that the
screen's gamma is 2.2.
<li>Scale the values such that
middle gray
pixels are mapped to 84.66 (or 3.5 f-stops below
the display's maximum intensity).
<li>Clamp the values to [0, 255].
</ol>
<p align="right"><a href="#top" style="text-decoration: none;"><img src="images/top.gif" width="45" height="26" alt="back to top" border="0"></a></p>
<p> </p>
<font face="Arial,Helvetica,sans-serif" size="1" color="#993333">© <script>var curDate=new Date(); document.write(curDate.getFullYear())</script>Copyright OpenEXR a Series of LF Projects, LLC and/or its contributors. All documentation on this website made available under a Creative Commons Attribution 4.0 International License.</FONT><br>
<p> </p>
<!-- end content --></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>