Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Nov 9 '14

berak gravatar image

imread/imwrite and friends were moved from highgui to a new imgcodecs module.

so you will have to

#include "opencv2/imgcodecs.hpp"

and link

-lopencv_imgcodecs
click to hide/show revision 2
No.2 Revision

imread/imwrite and friends were moved from highgui to a new imgcodecs module.

so you will have to

#include "opencv2/imgcodecs.hpp"

and link

-lopencv_imgcodecs

btw, include path should be:

-I/usr/local/include

not

-I/usr/local/include/opencv