Image Processing

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.
You should find another lib to help you
openCV2.2 is a well-known library for image processing(free, no charge)

introduction to openCV2.2
http://opencv.willowgarage.com/wiki/

document of openCV2.2
http://opencv.jp/opencv-2.2_org/cpp/genindex.html

how to read a jpeg image?
 
cv::Mat A = cv::imread("wahaha.jpg", -1);

or
 
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
Last edited on
Topic archived. No new replies allowed.