I was trying to save images from a video file but It couldn\'t save any image in my hard drive. I compiled following program without errors.
#include
Don't know if you solved the problem or not. if not you can use imwrite("test.jpg",img); to save an image,
here is an example- while(1) {
img=cvQueryFrame(cv_cap); cvShowImage("Video",img); imwrite("test.jpg",img); }