1 | | . |
| 1 | = img2stereo = |
| 2 | == Overview == |
| 3 | |
| 4 | img2stereo is a wrapping tool for converting images for left and right eye into anaglyph images that can be viewed in 3D with standard red/cyan glasses. You find the script in {{{trunk/SCRIPTS/img2video}}} (available since r982). |
| 5 | |
| 6 | == Requirements == |
| 7 | |
| 8 | img2stereo requires the Mencoder package (contained in Mplayer).\\ |
| 9 | \\ |
| 10 | == User Instructions for Converting a Single Pair of Images == |
| 11 | |
| 12 | 1. Run img2stereo as follows:{{{img2stereo #1 #2}}}, where {{{#1}}} and {{{#2}}} are the images for the left and right eye, respectively.\\\\'''Example:''' {{{img2stereo /home/username/stereo/lefteye.png /home/username/stereo/righteye.png}}}\\\\You will find the stereo image in the same directory as the left/right eye images are located. |
| 13 | |
| 14 | == User Instructions for Converting a Series of images == |
| 15 | |
| 16 | 1. Prepare two folders with your input files. \\e.g. “/home/username/stereo/left” containing the files “image_left_0000.png” to “image_left_3999.png” and “/home/username/stereo/right/” containing the files “image_right_0000.png” to “image_right_3999.png”. Make sure that both folders contain the same amount of images.\\\\ |
| 17 | 2. Run img2stereo with at least the {{{-n}}} and {{{-l}}}and {{{-r}}} parameters, \\'''Example:''' {{{img2stereo -l /home/username/stereo/left -r /home/username/stereo/right -n image}}}\\The stereo images will be placed in a directory called {{{stereo}}} in the parent directory of the left/right eye images. |
| 18 | |
| 19 | == Other parameters == |
| 20 | You can switch on conversion into grayscale, which is highly recommended for anaglyph images by using the option {{{-g}}}. |