|
1 | 1 | # [RenderDemo](RenderDemo) |
2 | 2 | ##### >[Psychtoolbox](Psychtoolbox)>[PsychDemos](PsychDemos) |
3 | 3 |
|
4 | | - [RenderDemo](RenderDemo) |
| 4 | +[RenderDemo](RenderDemo) |
5 | 5 |
|
6 | | - Illustrates calibration interface for simple task of producing a uniform |
7 | | - color patch of desired CIE xyY coordinates. |
| 6 | +Illustrates calibration interface for simple task of producing a uniform |
| 7 | +color patch of desired CIE xyY coordinates. |
8 | 8 |
|
9 | | - The calculation is done with respect to the current PTB demonstration |
10 | | - calibration file. |
| 9 | +The calculation is done with respect to the current PTB demonstration |
| 10 | +calibration file. |
11 | 11 |
|
12 | | - The demo shows multiple different ways to implement this, starting with a |
13 | | - purely Matlab based method, progressing to more advanced methods. The |
14 | | - final demonstration shows how to do it automatically and graphics |
15 | | - hardware accelerated. |
| 12 | +The demo shows multiple different ways to implement this, starting with a |
| 13 | +purely Matlab based method, progressing to more advanced methods. The |
| 14 | +final demonstration shows how to do it automatically and graphics |
| 15 | +hardware accelerated. |
16 | 16 |
|
17 | | -### Demo 1: |
| 17 | +### Demo 1: |
18 | 18 |
|
19 | | - The RGB values are gamma corrected and live in the range [0,1]. If they |
20 | | - contain 0 or 1, the xyY coordinates requested may have been out of gamut. |
| 19 | +The RGB values are gamma corrected and live in the range [0,1]. If they |
| 20 | +contain 0 or 1, the xyY coordinates requested may have been out of gamut. |
21 | 21 |
|
22 | | - A uniform color patch is displayed in the MATLAB figure window. This is |
23 | | - not a well-controlled display method, but does give a sense of the patch |
24 | | - color if the calibration file is a reasonable description of the display. |
| 22 | +A uniform color patch is displayed in the MATLAB figure window. This is |
| 23 | +not a well-controlled display method, but does give a sense of the patch |
| 24 | +color if the calibration file is a reasonable description of the display. |
25 | 25 |
|
26 | | - Immediately afterwards, the same color patch is shown in a PTB onscreen |
27 | | - window, with the same gamma table loaded which was used during |
28 | | - calibration measurements. This should render an accurate stimulus. |
| 26 | +Immediately afterwards, the same color patch is shown in a PTB onscreen |
| 27 | +window, with the same gamma table loaded which was used during |
| 28 | +calibration measurements. This should render an accurate stimulus. |
29 | 29 |
|
30 | | - Demo 2: As demo 1, but displaying in a onscreen window and performing the |
31 | | - gamma correction via proper inverse gamma lookup tables loaded into the |
32 | | - graphics card, thereby presenting on a linearized display, instead of |
33 | | - using the [SensorToSettings](SensorToSettings)() routine to adapt the stimulus to a |
34 | | - non-linearized display. |
| 30 | +Demo 2: As demo 1, but displaying in a onscreen window and performing the |
| 31 | +gamma correction via proper inverse gamma lookup tables loaded into the |
| 32 | +graphics card, thereby presenting on a linearized display, instead of |
| 33 | +using the [SensorToSettings](SensorToSettings)() routine to adapt the stimulus to a |
| 34 | +non-linearized display. |
35 | 35 |
|
36 | | - The last two demos Demo 3 and Demo 4 require a recent graphics card and |
37 | | - perform all color space conversions and calibrated display automatically |
38 | | - and hardware accelerated on the graphics card. Any [NVidia](NVidia) [GeForce](GeForce)-8000 or |
39 | | - later, AMD Radeon X-1000 or later, or Intel HD graphics card should be |
40 | | - able to support these demos. |
| 36 | +The last two demos Demo 3 and Demo 4 require a recent graphics card and |
| 37 | +perform all color space conversions and calibrated display automatically |
| 38 | +and hardware accelerated on the graphics card. Any [NVidia](NVidia) [GeForce](GeForce)-8000 or |
| 39 | +later, AMD Radeon X-1000 or later, or Intel HD graphics card should be |
| 40 | +able to support these demos. |
41 | 41 |
|
42 | | - Demo 3: The stimulus is defined in XYZ tristimulus color space and |
43 | | - converted automatically by [Screen](Screen)() into RGB output format, taking the |
44 | | - calibration data in 'cal' into account. |
| 42 | +Demo 3: The stimulus is defined in XYZ tristimulus color space and |
| 43 | +converted automatically by [Screen](Screen)() into RGB output format, taking the |
| 44 | +calibration data in 'cal' into account. |
45 | 45 |
|
46 | | - Demo 4: The stimulus is directly defined in xyY chromacity + luminance |
47 | | - format and all conversions and calibrations are done automatically by |
48 | | - [Screen](Screen)(). |
| 46 | +Demo 4: The stimulus is directly defined in xyY chromacity + luminance |
| 47 | +format and all conversions and calibrations are done automatically by |
| 48 | +[Screen](Screen)(). |
49 | 49 |
|
50 | | - 4/26/97 dhb Wrote it. |
51 | | - 7/25/97 dhb Better initialization. |
52 | | - 3/12/98 dgp Use [Ask](Ask). |
53 | | - 3/14/02 dhb Update for [OpenWindow](OpenWindow). |
54 | | - 4/03/02 awi Merged in Windows changes. On Windows we do not copy the result to the clipboard. |
55 | | - 4/13/02 awi Changed "[SetColorSpace](SetColorSpace)" to new name "[SetSensorColorSpace](SetSensorColorSpace)". |
56 | | - Changed "[LinearToSettings](LinearToSettings)" to new name "[SensorToSettings](SensorToSettings)". |
57 | | - 12/21/02 dhb Remove reliance on now obsolete [OpenWindow](OpenWindow)/[CloseWindow](CloseWindow). |
58 | | - 11/16/06 dhb Start getting this to work with PTB-3. |
59 | | - 11/22/06 dhb Fixed except that [Ask](Ask)() needs to be fixed. |
60 | | - 6/16/11 dhb The PTB display section was out of date and didn't work. I removed it. |
61 | | - 1/26/13 mk Add standard PTB display, but also imaging pipeline based methods. |
| 50 | +4/26/97 dhb Wrote it. |
| 51 | +7/25/97 dhb Better initialization. |
| 52 | +3/12/98 dgp Use [Ask](Ask). |
| 53 | +3/14/02 dhb Update for [OpenWindow](OpenWindow). |
| 54 | +4/03/02 awi Merged in Windows changes. On Windows we do not copy the result to the clipboard. |
| 55 | +4/13/02 awi Changed "[SetColorSpace](SetColorSpace)" to new name "[SetSensorColorSpace](SetSensorColorSpace)". |
| 56 | + Changed "[LinearToSettings](LinearToSettings)" to new name "[SensorToSettings](SensorToSettings)". |
| 57 | +12/21/02 dhb Remove reliance on now obsolete [OpenWindow](OpenWindow)/[CloseWindow](CloseWindow). |
| 58 | +11/16/06 dhb Start getting this to work with PTB-3. |
| 59 | +11/22/06 dhb Fixed except that [Ask](Ask)() needs to be fixed. |
| 60 | +6/16/11 dhb The PTB display section was out of date and didn't work. I removed it. |
| 61 | +1/26/13 mk Add standard PTB display, but also imaging pipeline based methods. |
62 | 62 |
|
63 | 63 |
|
64 | 64 |
|
|
0 commit comments