1 | initial version |
Maybe the problem is that cvSaveImage is not handling the color depth properly. Have you tried to change the color depth to 8bits per color channel?
IplImage* image = cvCreateImage(cvSize(int(8.5x72), 11x72), IPL_DEPTH_8U, 4);
2 | improved answer |
Maybe the problem is that cvSaveImage is not handling the color depth properly. Have you tried to change the color depth to 8bits per color channel?
IplImage* image = cvCreateImage(cvSize(int(8.5x72), 11x72), IPL_DEPTH_8U, 4);
Also you should initialize all the values of image to something otherwise you can get unexpected behaviors.