diff --git a/lines.cpp b/lines.cpp index e37fea1..b3e622f 100644 --- a/lines.cpp +++ b/lines.cpp @@ -28,7 +28,7 @@ int main(int argc, char *argv[]) char const *fname = "files/masckera.png"; if( 1 params; + params.push_back(CV_IMWRITE_PNG_COMPRESSION); + params.push_back(9); + Mat dst; + img.convertTo(dst, CV_8UC3); + cv::imwrite(argv[2], dst, params); + } return EXIT_SUCCESS; }