C# 클래스 Accord.Imaging.Filters.StereoAnaglyph

Stereo anaglyph filter.

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 BaseInPlaceFilter2.OverlayImage property, but the left image must be provided to IFilter.Apply(Bitmap) method, which creates the anaglyph image.

The filter accepts 24 bpp color images for processing.

See Algorithm enumeration for the list of supported anaglyph algorithms.

Sample usage:

// 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:

상속: BaseInPlaceFilter2
파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 메소드들

메소드 설명
StereoAnaglyph ( ) : System

Initializes a new instance of the StereoAnaglyph class.

StereoAnaglyph ( Algorithm anaglyphAlgorithm ) : System

Initializes a new instance of the StereoAnaglyph class.

보호된 메소드들

메소드 설명
ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void

Process the filter on the specified image.

메소드 상세

ProcessFilter() 보호된 메소드

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void
image UnmanagedImage Source image data (left image).
overlay UnmanagedImage Overlay image data (right image).
리턴 void

StereoAnaglyph() 공개 메소드

Initializes a new instance of the StereoAnaglyph class.
public StereoAnaglyph ( ) : System
리턴 System

StereoAnaglyph() 공개 메소드

Initializes a new instance of the StereoAnaglyph class.
public StereoAnaglyph ( Algorithm anaglyphAlgorithm ) : System
anaglyphAlgorithm Algorithm Algorithm to use for creating anaglyph images.
리턴 System