C# 클래스 AForge.Imaging.Filters.BayerFilterOptimized

Optimized Bayer fileter image processing routine.

The class implements Bayer filter routine, which creates color image out of grayscale image produced by image sensor built with Bayer color matrix.

This class does all the same as BayerFilter class. However this version is optimized for some well known patterns defined in BayerPattern enumeration. Also this class processes images with even width and height only. Image size must be at least 2x2 pixels.

The filter accepts 8 bpp grayscale images and produces 24 bpp RGB image.

Sample usage:

// create filter BayerFilter filter = new BayerFilter( ); // apply the filter Bitmap rgbImage = filter.Apply( image );
상속: BaseFilter
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET

공개 메소드들

메소드 설명
BayerFilterOptimized ( ) : System

Initializes a new instance of the BayerFilterOptimized class.

보호된 메소드들

메소드 설명
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

비공개 메소드들

메소드 설명
ApplyBGGR ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
ApplyGRBG ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

메소드 상세

BayerFilterOptimized() 공개 메소드

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

ProcessFilter() 보호된 메소드

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
리턴 void