Class BitmapExtension
Inheritance
BitmapExtension
Assembly: SaigeVision.Net.V2.dll
Syntax
public static class BitmapExtension
Methods
View Source
GetImageTypeFlag(Mat)
Declaration
public static ImageTypeFlags GetImageTypeFlag(Mat mat)
Parameters
| Type |
Name |
Description |
| Mat |
mat |
|
Returns
View Source
GetMatType(int)
이미지 channel 값을 넣으면 적절한 PixelFormat으로 변경해주는 기능
Declaration
public static MatType GetMatType(int channel)
Parameters
| Type |
Name |
Description |
| int |
channel |
Channel 정보 (1,3,4 중 하나 입력)
|
Returns
| Type |
Description |
| MatType |
채널에 맞는 적절한 PixelFormat
|
View Source
ToMat(int, int, int, byte[])
Declaration
public static Mat ToMat(int width, int height, int channel, byte[] data)
Parameters
| Type |
Name |
Description |
| int |
width |
|
| int |
height |
|
| int |
channel |
|
| byte[] |
data |
|
Returns
View Source
ToMat(int, int, int, IntPtr)
Declaration
public static Mat ToMat(int width, int height, int channel, IntPtr data)
Parameters
Returns