visageSDK
VSImage.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 namespace VisageCSWrapper
7 {
11  public struct VSImage
12  {
13 
23  VSImage(int width, int height, int depth, int nChannels, int dataOrder = 0, int origin = 0);
24 
28  public int width;
29 
30 
34  public int height;
35 
36 
40  public int depth;
41 
42 
46  public int widthStep;
47 
48 
52  public int dataOrder;
53 
54 
58  public int nChannels;
59 
60 
64  public int origin;
65 
66 
70  public byte[] imageData;
71  }
72 }
int widthStep
Size of aligned image row in bytes.
Definition: VSImage.cs:46
int origin
0 - top-left origin, 1 - bottom-left origin.
Definition: VSImage.cs:64
int depth
Pixel depth in bits: VS_DEPTH_8U, VS_DEPTH_8S, VS_DEPTH_16S, VS_DEPTH_32S, VS_DEPTH_32F and VS_DEPTH_...
Definition: VSImage.cs:40
Image storage class.
Definition: VSImage.cs:11
int nChannels
Most functions support 1,2,3 or 4 channels
Definition: VSImage.cs:58
int width
Image width in pixels.
Definition: VSImage.cs:28
VSImage(int width, int height, int depth, int nChannels, int dataOrder=0, int origin=0)
Constructor.
byte[] imageData
Pointer to aligned image data.
Definition: VSImage.cs:70
int dataOrder
0 - interleaved color channels, 1 - separate color channels.
Definition: VSImage.cs:52
int height
Image height in pixels.
Definition: VSImage.cs:34