by Alan Po
Introduction
Design
Results
Source Codes
Acknowledgements
References
) for instance, the 2-D anaglyph image appears to be a 3-D object. This
phenomenon can be explained by the fact that the red lens, through which the left eye views,
allows only red light to pass through. Therefore, having a red image and a blue image
printed on a black background, only lights from the red image passes through the red lens into
the left eye, while the blue image just appears black and becomes indistinguishable from
the background. As a result, the left eye sees only the red image that stands out of the
black background but not the blue one. The same thing happens to the right side except that the colors red and
blue are interchanged. In other words, using such special pair of glasses, each eye sees
only the image that is supposed to be seen when viewing the 3-D object; and this causes the
viewer to interpret the 2-D anaglyph image as the original 3-D object.
The anaglyph macro takes as input the renderal and camera outpus from an image module that contains the desired object, and then generates an anaglyph image from it. The eye separation, colors of left and right lenses are defaulted to be one-tenth of the distance from the view point to the object, pure red and pure blue respectively; nevertheless, all three of them can be set by the user.
Since the lens colors vary for different pairs of 3-D glasses, a program is also written for color calibration. Such program produces an image with the word "left" printed in one color and the word "right" printer in another color, where both colors can be adjusted by user to match the color of a particular pair of 3-D glasses. Up to a point where the user's left eye sees only the word "left" and the right eye sees only the word "right", the colors will be correctly matched. Since it is more convinient to interpret and adjust colors in the HSV space than in the RGB space, the calibrator allows the user to input HSV vectors which are then converted to their RGB counterparts and displayed for user's convinence. Using the results from the color calibration program instead of the default colors will improve the quality of the anaglyph produced.
|
|
|
The macro
The color calibrator and it's configuration file
The test program and it's configuration file