Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set scan frequency when save jpg using PROGRESSIVE mode

I saved jpg using PROGRESSIVE mode, this is my code:

Mat img = imread("input.jpg"); vector<int>compression_params;
compression_params.push_back(IMWRITE_JPEG_PROGRESSIVE); compression_params.push_back(1); imwrite("out.jpg",img, compression_params);

Then I opened out.jpg by UltraEdit . I found that "FF DA" appeared 10 times , which meant that the scan time was 10 . How to change the scan time in OpenCV?

click to hide/show revision 2
No.2 Revision

updated 2017-05-24 04:40:32 -0600

berak gravatar image

How to set scan frequency when save jpg using PROGRESSIVE mode

I saved jpg using PROGRESSIVE mode, this is my code:

Mat img = imread("input.jpg");
vector<int>compression_params; 
compression_params.push_back(IMWRITE_JPEG_PROGRESSIVE); compression_params.push_back(1); imwrite("out.jpg",img, compression_params);

compression_params);

Then I opened out.jpg by UltraEdit . I found that "FF DA" appeared 10 times , which meant that the scan time was 10 . How to change the scan time in OpenCV?

How to set scan frequency when save jpg using PROGRESSIVE mode

I saved jpg using PROGRESSIVE mode, this is my code:

Mat img = imread("input.jpg");
vector<int>compression_params;   
compression_params.push_back(IMWRITE_JPEG_PROGRESSIVE);
compression_params.push_back(1);
imwrite("out.jpg",img, compression_params);

Then I opened out.jpg by UltraEdit . I found that "FF DA" appeared 10 times , which meant that the scan time was 10 . How to change the scan time in OpenCV?