opencv Loading and Saving Various Media Formats Loading Images


Example

#include <highgui.h>

//...

cv::Mat img = cv::imread("img.jpg");

...