http://www.emgu.com
Creates the header and allocates data.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static IntPtr cvCreateImage(
	Size size,
	IPL_DEPTH depth,
	int channels
)
Visual Basic
Public Shared Function cvCreateImage ( 
	size As Size,
	depth As IPL_DEPTH,
	channels As Integer
) As IntPtr
Visual C++
public:
static IntPtr cvCreateImage(
	Size size, 
	IPL_DEPTH depth, 
	int channels
)
F#
static member cvCreateImage : 
        size : Size * 
        depth : IPL_DEPTH * 
        channels : int -> IntPtr 

Parameters

size
Type: System.Drawing..::..Size
Image width and height.
depth
Type: Emgu.CV.CvEnum..::..IPL_DEPTH
Bit depth of image elements
channels
Type: System..::..Int32
Number of channels per element(pixel). Can be 1, 2, 3 or 4. The channels are interleaved, for example the usual data layout of a color image is: b0 g0 r0 b1 g1 r1 ...

Return Value

Type: IntPtr
A pointer to IplImage

See Also