Hello, I got a PROJECT in c++, I've been given an image of 300x300 pixels I've to process it's negative image and have to process brightness on it. The problem is I'm in first year of my engineering degree and our scope ain't much to do that. So if anyone can help me I don't even know how to read an image, A basic program of c++ reading a jpeg image will be appreciated and then step by step we'll move with the project.
cv::Mat_<cv::Vec3d> A = cv::imread("wahaha.jpg", -1);
you could find out how to use the openCV2.2 from the document
good luck
ps : access by subscript([][]) is very easy but not the most efficient way for the containers cv::Mat
or cv::Mat_
Besides, the speed of the iterators of cv::Mat and cv::Mat_ is very slow, think about it before you
want to use them to access the pixel