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.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
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 )