![]() |
Opencv Imwrite and Copy
Does anyone know how to save a Mat image as a .jpg file in C++? We have tried imwrite but cannot get Eclipse to recognize the function.
Also is there a way to copy one Mat image to another? Thanks |
Re: Opencv Imwrite and Copy
Quote:
|
Re: Opencv Imwrite and Copy
We use imwrite() with no problem. As previously stated, it is likely just an Eclipse issue, or a problem with your #includes.
For copying, try clone(): Code:
cv::Mat source; |
Re: Opencv Imwrite and Copy
Okay the clone is compiling okay and cv::imwrite("test.jpg", out_image) is also compiling. It looks like the third parameter for imwrite is not needed.
Thanks for your help. I will try this tonight. |
| All times are GMT -5. The time now is 15:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi