Creates the header and allocates data.

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

Syntax

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

Parameters

size
Size
Image width and height.
depth
IPL_DEPTH
Bit depth of image elements
channels
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