added some missing declarations of the functions, noticed in the ticket ##229

This commit is contained in:
Vadim Pisarevsky
2011-08-06 19:17:14 +00:00
parent 4b94d91955
commit cffd89f88f
4 changed files with 25 additions and 21 deletions

View File

@@ -9,14 +9,18 @@ Reads an image from a buffer in memory.
.. ocv:function:: Mat imdecode( InputArray buf, int flags )
.. ocv:cfunction:: IplImage* cvDecodeImage( const CvMat* buf, int iscolor=CV_LOAD_IMAGE_COLOR)
.. ocv:cfunction:: CvMat* cvDecodeImageM( const CvMat* buf, int iscolor=CV_LOAD_IMAGE_COLOR)
.. ocv:pyfunction:: cv2.imdecode(buf, flags) -> retval
:param buf: Input array of vector of bytes.
:param buf: Input array or vector of bytes.
:param flags: The same flags as in :ocv:func:`imread` .
The function reads an image from the specified buffer in the memory.
If the buffer is too short or contains invalid data, the empty matrix is returned.
If the buffer is too short or contains invalid data, the empty matrix/image is returned.
See
:ocv:func:`imread` for the list of supported formats and flags description.
@@ -27,6 +31,8 @@ Encodes an image into a memory buffer.
.. ocv:function:: bool imencode( const string& ext, InputArray img, vector<uchar>& buf, const vector<int>& params=vector<int>())
.. ocv:cfunction:: CvMat* cvEncodeImage(const char* ext, const CvArr* image, const int* params=NULL )
.. ocv:pyfunction:: cv2.imencode(ext, img, buf[, params]) -> retval
:param ext: File extension that defines the output format.
@@ -41,6 +47,8 @@ The function compresses the image and stores it in the memory buffer that is res
See
:ocv:func:`imwrite` for the list of supported formats and flags description.
.. note:: ``cvEncodeImage`` returns single-row matrix of type ``CV_8UC1`` that contains encoded image as array of bytes.
imread
----------
Loads an image from a file.