Documentation still describes the removed cv::Mat constructor from IplImage* (Bug #4031)


Added by Ralph Hartley over 10 years ago. Updated about 10 years ago.


Status:Done Start date:2014-11-26
Priority:Normal Due date:
Assignee:Maksim Shabunin % Done:

0%

Category:documentation
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty:Easy HW Platform:Other
Pull request:https://github.com/Itseez/opencv/pull/3479

Description

For example in "Basic Structures" it says:
Partial yet very common cases of this user-allocated data case are conversions from CvMat and IplImage to Mat. For this purpose, there are special constructors taking pointers to CvMat or IplImage and the optional flag indicating whether to copy the data or not.

It even has several code fragments using it, which no longer work:
IplImage* img = cvLoadImage("greatwave.jpg", 1);
Mat mtx(img); // convert IplImage* -> Mat
CvMat oldmat = mtx; // convert Mat -> CvMat
CV_Assert(oldmat.cols img->width && oldmat.rows img->height &&
oldmat.data.ptr (uchar*)img->imageData && oldmat.step img->widthStep);


Associated revisions

Revision 7061bf00
Added by Vadim Pisarevsky almost 10 years ago

Merge pull request #4031 from apavlenko:revert_4014

History

Updated by Ilya Lavrenov over 10 years ago

  • Assignee set to Maksim Shabunin

Updated by Maksim Shabunin over 10 years ago

Doxygen documentation will be updated in PR#3479

  • Pull request set to https://github.com/Itseez/opencv/pull/3479
  • Status changed from New to Open

Updated by Maksim Shabunin about 10 years ago

  • Status changed from Open to Done
  • Target version set to 3.0
  • Difficulty set to Easy

Also available in: Atom PDF