added variant of cv::imdecode with the specified output matrix

This commit is contained in:
Vadim Pisarevsky
2012-10-01 16:23:40 +04:00
parent 420dd22258
commit c9f1490302
3 changed files with 25 additions and 2 deletions

View File

@@ -189,6 +189,7 @@ CV_EXPORTS_W Mat imread( const string& filename, int flags=1 );
CV_EXPORTS_W bool imwrite( const string& filename, InputArray img,
const vector<int>& params=vector<int>());
CV_EXPORTS_W Mat imdecode( InputArray buf, int flags );
CV_EXPORTS Mat imdecode( InputArray buf, int flags, Mat* dst );
CV_EXPORTS_W bool imencode( const string& ext, InputArray img,
CV_OUT vector<uchar>& buf,
const vector<int>& params=vector<int>());