Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Autostereogram
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Random-dot=== {{See also|Random dot stereogram}} {| border="0" align="right" |----- | align="center" | [[Image:Stereogram Tut Rectangles Depthmap.png|thumb|200px|Depth map]] | align="center" | [[Image:Stereogram Tut Rectangles Pattern.png|thumb|35px|Pattern]] |} A computer program can take a depth map and an accompanying pattern image to produce an autostereogram. The program tiles the pattern image horizontally to cover an area whose size is identical to the depth map. Conceptually, at every pixel in the output image, the program looks up the grayscale value of the equivalent pixel in the depth map image, and uses this value to determine the amount of horizontal shift required for the pixel. One way to accomplish this is to make the program scan every line in the output image pixel-by-pixel from left to right. It seeds the first series of pixels in a row from the pattern image. Then it consults the depth map to retrieve appropriate shift values for subsequent pixels. For every pixel, it subtracts the shift from the width of the pattern image to arrive at a repeat interval. It uses this repeat interval to look up the color of the counterpart pixel to the left and uses its color as the new pixel's own color.<ref name="kinsman"/> {| border="0" |----- | align="center" | [[Image:Stereogram Tut Rectangles.png|thumb|250px|Three raised rectangles appear on different depth planes in this autostereogram. ([[Image:Stereogram guide parallel.png|10px]])]] | align="center" | [[Image:Stereogram Tut Pixel Shift.png|thumb|250px|Every pixel in an autostereogram obeys the distance interval specified by the depth map.]] |} Unlike the simple depth planes created by simple wallpaper autostereograms, subtle changes in spacing specified by the depth map can create the illusion of smooth [[gradient]]s in distance. This is possible because the grayscale depth map allows individual pixels to be placed on one of 2<sup>''n''</sup> depth planes, where ''n'' is the number of bits used by each pixel in the depth map. In practice, the total number of depth planes is determined by the number of pixels used for the width of the pattern image. Each grayscale value must be translated into pixel space in order to shift pixels in the final autostereogram. As a result, the number of depth planes must be smaller than the pattern width. [[Image:Stereogram Tut Random Dot Shark.png|thumb|400px|This random dot autostereogram features a raised shark with fine gradient on a flat background. ([[Image:Stereogram guide parallel.png|10px]])]] [[File:Stereogram of shark revealed.gif|thumb|400px|The revelation of the shark.]] The fine-tuned gradient requires a pattern image more complex than standard repeating-pattern wallpaper, so typically a pattern consisting of repeated random dots is used. When the autostereogram is viewed with proper viewing technique, a hidden 3D scene emerges. Autostereograms of this form are known as Random Dot Autostereograms. Smooth gradients can also be achieved with an intelligible pattern, assuming that the pattern is complex enough and does not have big, horizontal, monotonic patches. A big area painted with monotonic color without change in [[hue]] and [[brightness]] does not lend itself to pixel shifting, as the result of the horizontal shift is identical to the original patch. The following [[depth map]] of a shark with smooth gradient produces a perfectly readable autostereogram, even though the 2D image contains small monotonic areas; the brain is able to recognize these small gaps and fill in the blanks ([[illusory contours]]). While intelligible, repeated patterns are used instead of random dots, this type of autostereogram is still known by many as a Random Dot Autostereogram, because it is created using the same process. {| border="0" |----- | align="center" | [[Image:Stereogram Tut Shark Depthmap.png|left|thumb|250px|The shark figure in this depth map is drawn with a smooth gradient.]] | align="center" | [[Image:Stereogram Tut Shark.png|thumb|left|250px|The 3D shark in this random-dot autostereogram has a smooth, round shape due to the use of depth map with smooth gradient. ([[Image:Stereogram guide parallel.png|10px]])]] |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)