Click or drag to resize
CvInvokeImread Method
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.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static Mat Imread(
	string filename,
	ImreadModes loadType = ImreadModes.Color


Type: SystemString
The name of the file to be loaded
loadType (Optional)
Type: Emgu.CV.CvEnumImreadModes
The image loading type

Return Value

Type: Mat
The loaded image
See Also