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