C# Class OpenCvSharp.Extensions.BitmapSourceConverter

Static class which provides conversion between System.Windows.Media.Imaging.BitmapSource and IplImage
Mostrar archivo Open project: shimat/opencvsharp

Public Methods

Method Description
CopyFrom ( this mat, System.Windows.Media.Imaging.BitmapSource wb ) : void

Copies pixel data from System.Windows.Media.Imaging.BitmapSource to IplImage instance

ToBitmapSource ( this src ) : System.Windows.Media.Imaging.BitmapSource

Converts Mat to BitmapSource.

ToBitmapSource ( this src, int horizontalResolution, int verticalResolution, System.Windows.Media.PixelFormat pixelFormat, System.Windows.Media.Imaging.BitmapPalette palette ) : System.Windows.Media.Imaging.BitmapSource

Converts Mat to BitmapSource.

ToMat ( this src ) : Mat

Converts BitmapSource to Mat

ToMat ( this src, Mat dst ) : void

Converts BitmapSource to Mat

Private Methods

Method Description
CreateBitmapSourceFromBitmap ( Stream stream ) : System.Windows.Media.Imaging.BitmapSource
IsInvokeRequired ( ) : bool

Method Details

CopyFrom() public static method

Copies pixel data from System.Windows.Media.Imaging.BitmapSource to IplImage instance
public static CopyFrom ( this mat, System.Windows.Media.Imaging.BitmapSource wb ) : void
mat this
wb System.Windows.Media.Imaging.BitmapSource
return void

ToBitmapSource() public static method

Converts Mat to BitmapSource.
public static ToBitmapSource ( this src ) : System.Windows.Media.Imaging.BitmapSource
src this Input IplImage
return System.Windows.Media.Imaging.BitmapSource

ToBitmapSource() public static method

Converts Mat to BitmapSource.
public static ToBitmapSource ( this src, int horizontalResolution, int verticalResolution, System.Windows.Media.PixelFormat pixelFormat, System.Windows.Media.Imaging.BitmapPalette palette ) : System.Windows.Media.Imaging.BitmapSource
src this Input IplImage
horizontalResolution int
verticalResolution int
pixelFormat System.Windows.Media.PixelFormat
palette System.Windows.Media.Imaging.BitmapPalette
return System.Windows.Media.Imaging.BitmapSource

ToMat() public static method

Converts BitmapSource to Mat
public static ToMat ( this src ) : Mat
src this Input BitmapSource
return Mat

ToMat() public static method

Converts BitmapSource to Mat
public static ToMat ( this src, Mat dst ) : void
src this Input BitmapSource
dst Mat Output Mat
return void