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.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static Mat Imread(
string filename,
ImreadModes loadType = ImreadModes.Color
)
Public Shared Function Imread (
filename As String,
Optional loadType As ImreadModes = ImreadModes.Color
) As Mat
public:
static Mat^ Imread(
String^ filename,
ImreadModes loadType = ImreadModes::Color
)
static member Imread :
filename : string *
?loadType : ImreadModes
(* Defaults:
let _loadType = defaultArg loadType ImreadModes.Color
*)
-> Mat
Parameters
- filename
- Type: SystemString
The name of the file to be loaded - loadType (Optional)
- Type: Emgu.CV.CvEnumImreadModes
The image loading type
Return Value
Type:
MatThe loaded image
See Also