C# 클래스 OpenCvSharp.Extensions.WriteableBitmapConverter

A static class which provides conversion between System.Windows.Media.Imaging.WriteableBitmap and IplImage
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

공개 메소드들

메소드 설명
ToWriteableBitmap ( this src ) : System.Windows.Media.Imaging.WriteableBitmap

Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)

ToWriteableBitmap ( this src, System.Windows.Media.PixelFormat pf ) : System.Windows.Media.Imaging.WriteableBitmap

Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)

ToWriteableBitmap ( this src, double dpiX, double dpiY, System.Windows.Media.PixelFormat pf, System.Windows.Media.Imaging.BitmapPalette bp ) : System.Windows.Media.Imaging.WriteableBitmap

Converts Mat to WriteableBitmap. The arguments of this method corresponds the consructor of WriteableBitmap.

ToWriteableBitmap ( OpenCvSharp.CPlusPlus.Mat src, System.Windows.Media.Imaging.WriteableBitmap dst ) : void

Converts Mat to WriteableBitmap. This method is more efficient because new instance of WriteableBitmap is not allocated.

비공개 메소드들

메소드 설명
GetOptimumChannels ( System.Windows.Media.PixelFormat f ) : int

指定したPixelFormatに適合するIplImageのチャンネル数を返す

GetOptimumPixelFormats ( MatType type ) : System.Windows.Media.PixelFormat

指定したIplImageのビット深度・チャンネル数に適合するPixelFormatを返す

GetOptimumType ( System.Windows.Media.PixelFormat f ) : MatType

指定したPixelFormatに適合するMatTypeを返す

WriteableBitmapConverter ( ) : System

메소드 상세

ToWriteableBitmap() 공개 정적인 메소드

Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)
public static ToWriteableBitmap ( this src ) : System.Windows.Media.Imaging.WriteableBitmap
src this Input Mat
리턴 System.Windows.Media.Imaging.WriteableBitmap

ToWriteableBitmap() 공개 정적인 메소드

Converts Mat to WriteableBitmap (dpi=96, BitmapPalette=null)
public static ToWriteableBitmap ( this src, System.Windows.Media.PixelFormat pf ) : System.Windows.Media.Imaging.WriteableBitmap
src this Input Mat
pf System.Windows.Media.PixelFormat Pixel format of output WriteableBitmap
리턴 System.Windows.Media.Imaging.WriteableBitmap

ToWriteableBitmap() 공개 정적인 메소드

Converts Mat to WriteableBitmap. The arguments of this method corresponds the consructor of WriteableBitmap.
public static ToWriteableBitmap ( this src, double dpiX, double dpiY, System.Windows.Media.PixelFormat pf, System.Windows.Media.Imaging.BitmapPalette bp ) : System.Windows.Media.Imaging.WriteableBitmap
src this Input Mat
dpiX double Horizontal dots per inch
dpiY double Vertical dots per inch
pf System.Windows.Media.PixelFormat Pixel format of output WriteableBitmap
bp System.Windows.Media.Imaging.BitmapPalette Bitmap pallette
리턴 System.Windows.Media.Imaging.WriteableBitmap

ToWriteableBitmap() 공개 정적인 메소드

Converts Mat to WriteableBitmap. This method is more efficient because new instance of WriteableBitmap is not allocated.
public static ToWriteableBitmap ( OpenCvSharp.CPlusPlus.Mat src, System.Windows.Media.Imaging.WriteableBitmap dst ) : void
src OpenCvSharp.CPlusPlus.Mat Input Mat
dst System.Windows.Media.Imaging.WriteableBitmap Output WriteableBitmap
리턴 void