3,977 questions
Tried to resize the image but got an error?
Yen Dang
20
Reputation points
Hi,
I'm using the following code to resize this attach image but the output always changes color.
cv::Mat dat= cv::imread(path, IMREAD_UNCHANGED);
cv::Mat dst;
cv::resize(dat, dst, cv::Size(), 0.6, 0.6, INTER_AREA);
cv::imwrite(path, dst);
I tried changing many different options with no success besides the image quality may decrease.
How I can fix this?
Developer technologies | C++
Sign in to answer