http://www.emgu.com
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: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic static Mat Imread(
string filename,
LoadImageType loadType
)
Public Shared Function Imread (
filename As String,
loadType As LoadImageType
) As Mat
public:
static Mat^ Imread(
String^ filename,
LoadImageType loadType
)
static member Imread :
filename : string *
loadType : LoadImageType -> Mat
Parameters
- filename
- Type: SystemString
The name of the file to be loaded - loadType
- Type: Emgu.CV.CvEnumLoadImageType
The image loading type
Return Value
Type:
MatThe loaded image
See Also