From: Suleyman TURKMEN Date: Wed, 18 Nov 2015 22:25:36 +0000 (+0200) Subject: Update imgcodecs.hpp X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2157^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99a286ef24b3631cf6086fdf9375fc359b2318ed;p=platform%2Fupstream%2Fopencv.git Update imgcodecs.hpp --- diff --git a/modules/imgcodecs/include/opencv2/imgcodecs.hpp b/modules/imgcodecs/include/opencv2/imgcodecs.hpp index 3222321..ac0fd24 100644 --- a/modules/imgcodecs/include/opencv2/imgcodecs.hpp +++ b/modules/imgcodecs/include/opencv2/imgcodecs.hpp @@ -177,8 +177,6 @@ should have alpha set to 0, fully opaque pixels should have alpha set to 255/655 The sample below shows how to create such a BGRA image and store to PNG file. It also demonstrates how to set custom compression parameters : @code - #include - #include #include using namespace cv; @@ -211,7 +209,7 @@ compression parameters : try { imwrite("alpha.png", mat, compression_params); } - catch (runtime_error& ex) { + catch (cv::Exception& ex) { fprintf(stderr, "Exception converting image to PNG format: %s\n", ex.what()); return 1; }