Stereo anaglyph filter.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class StereoAnaglyph : BaseInPlaceFilter2

Remarks

The image processing filter produces stereo anaglyph images which are aimed to be viewed through anaglyph glasses with red filter over the left eye and cyan over the right.

The stereo image is produced by combining two images of the same scene taken from a bit different points. The right image must be provided to the filter using OverlayImage property, but the left image must be provided to Apply(Bitmap) method, which creates the anaglyph image.

The filter accepts 24 bpp color images for processing.

See StereoAnaglyph..::.Algorithm enumeration for the list of supported anaglyph algorithms.

Sample usage:

CopyC#
// create filter
StereoAnaglyph filter = new StereoAnaglyph( );
// set right image as overlay
filter.Overlay = rightImage
// apply the filter (providing left image)
Bitmap resultImage = filter.Apply( leftImage );

Source image (left):

Overlay image (right):

Result image:

Inheritance Hierarchy

See Also