Loads an image from the specified file and returns the pointer to the loaded image. Currently the following file formats are supported:
Windows bitmaps - BMP, DIB;
JPEG files - JPEG, JPG, JPE;
Portable Network Graphics - PNG;
Portable image format - PBM, PGM, PPM;
Sun rasters - SR, RAS;
TIFF files - TIFF, TIF;
OpenEXR HDR images - EXR;
JPEG 2000 images - jp2.

C# | Visual Basic | Visual C++ |
public static IntPtr cvLoadImage( string filename, LOAD_IMAGE_TYPE loadType )
Public Shared Function cvLoadImage ( _ filename As String, _ loadType As LOAD_IMAGE_TYPE _ ) As IntPtr
public: static IntPtr cvLoadImage( String^ filename, LOAD_IMAGE_TYPE loadType )

- filename (String)
- The name of the file to be loaded
- loadType (LOAD_IMAGE_TYPE)
[Missing <param name="loadType"/> documentation for "M:Emgu.CV.CvInvoke.cvLoadImage(System.String,Emgu.CV.CvEnum.LOAD_IMAGE_TYPE)"]

The loaded image