mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
Merge pull request #5379 from sturkmen72:patch-9
This commit is contained in:
commit
6f04385a0e
@ -1909,7 +1909,8 @@ static void showSaveDialog(CvWindow* window)
|
|||||||
|
|
||||||
if (GetSaveFileName(&ofn))
|
if (GetSaveFileName(&ofn))
|
||||||
{
|
{
|
||||||
cv::Mat tmp; cv::flip(cv::Mat(sz.cy, sz.cx, CV_8UC(channels), data), tmp, 0);
|
cv::Mat tmp;
|
||||||
|
cv::flip(cv::Mat(sz.cy, sz.cx, CV_8UC(channels), data, (sz.cx * channels + 3) & -4), tmp, 0);
|
||||||
cv::imwrite(szFileName, tmp);
|
cv::imwrite(szFileName, tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user