Merge pull request #12971 from sturkmen72:upd_imgproc_hpp

* Update imgproc.hpp

* update color conversion codes
This commit is contained in:
Suleyman TURKMEN
2018-10-31 18:08:24 +03:00
committed by Alexander Alekhin
parent fcb56a5460
commit 4d0ed5c13c
7 changed files with 294 additions and 232 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ bool WebPEncoder::write(const Mat& img, const std::vector<int>& params)
if (channels == 1)
{
cvtColor(*image, temp, CV_GRAY2BGR);
cvtColor(*image, temp, COLOR_GRAY2BGR);
image = &temp;
channels = 3;
}