J = stereoAnaglyph(I1,I2) combines
images I1 and I2 into a
red-cyan anaglyph. When the inputs are rectified stereo images, you
can view the output image with red-blue stereo glasses to see the
stereo effect.
Input image I1, specified as an M-by-N-by-3
truecolor image or an M-by-N 2-D grayscale
image. I1 and I2 must be
real, finite, and nonsparse, and the images must be the same size.
If the images are not the same size, use imfuse to
pad the smaller image dimension with zeros before creating the anaglyph.
Data Types: single | double | int16 | uint8 | uint16 | logical
Input image I2, specified as an M-by-N-by-3
truecolor image or an M-by-N 2-D grayscale
image. I1 and I2 must be
real, finite, and nonsparse, and the images must be the same size.
If the images are not the same size, use imfuse to
pad the smaller image dimension with zeros before creating the anaglyph.
Data Types: single | double | int16 | uint8 | uint16 | logical