ImageTColor, TDepth Constructor (Int32, Int32, Int32, IntPtr) |
http://www.emgu.com
Create an Image from unmanaged data.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Image(
int width,
int height,
int stride,
IntPtr scan0
)
Public Sub New (
width As Integer,
height As Integer,
stride As Integer,
scan0 As IntPtr
)
public:
Image(
int width,
int height,
int stride,
IntPtr scan0
)
new :
width : int *
height : int *
stride : int *
scan0 : IntPtr -> Image
Parameters
- width
- Type: SystemInt32
The width of the image - height
- Type: SystemInt32
The height of the image - stride
- Type: SystemInt32
Size of aligned image row in bytes - scan0
- Type: SystemIntPtr
Pointer to aligned image data, where each row should be 4-align
RemarksThe caller is responsible for allocating and freeing the block of memory specified by the scan0 parameter, however, the memory should not be released until the related Image is released.
See Also