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

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

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
)

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

A pointer to IplImage

See Also