Some differences between the OpenCV C + + interface and the legacy C-style interface

Source: Internet
Author: User

Before always using the old version of the OpenCV interface, that is, iplimage*, cvmat* a class of things, and later felt the need to learn new things, and then also by the occasional memory leak tortured half-dead, so the use of the new C + + interface. Two versions Although many places can be found in a simple way in common, such as Cv::namedwindow and Cvnamedwindow, just the CV removed, changed to CV:: plus the first letter lowercase.

However, the new version has some differences, remember to write a little bit:

1:cv::scalar and Cvscalar with the three values of the same value to assign the color is not the same, occasionally some eggs ache. I don't remember how this problem happened before.

2: There is no cvget2d corresponding function, quote friends: "seems to see the designers have no way to abolish all C interface and have to abolish some of the pain of the use of the two-cornered mood."

Some differences between the OpenCV C + + interface and the legacy C-style interface

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.