Class BitmapExtension
Bitmap 관련 정적 클래스입니다.
Inheritance
object
BitmapExtension
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SaigeVision.Net.V2.Extensions
Assembly: SaigeVision.Net.V2.dll
Syntax
public static class BitmapExtension
Methods
View SourceGetImageTypeFlag(Mat)
Declaration
public static ImageTypeFlags GetImageTypeFlag(Mat mat)
Parameters
| Type | Name | Description |
|---|---|---|
| Mat | mat |
Returns
| Type | Description |
|---|---|
| ImageTypeFlags |
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 |
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
| Type | Description |
|---|---|
| Mat |
ToMat(int, int, int, IntPtr)
Declaration
public static Mat ToMat(int width, int height, int channel, IntPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height | |
| int | channel | |
| IntPtr | data |
Returns
| Type | Description |
|---|---|
| Mat |