Ask Your Question

Revision history [back]

Since comments are quite unclear if they get cramped with information, I will copy my comments into a single answer:


A side note: switch to the newer C++ style API. It is way more easier in handling image pointers and stuff like that.


You are using old and depricated openCV instructions, which still rely on the underlying C - API. However, from openCV2.0 they switched to a newer C++ - API which does his own memory management and such. Have a look at docs and type in canny. You will see there is the old C style cvCanny, but it has been replaced by a C++ corresponding function Canny. Functions with cv in front are the old interfaces and they will be removed in the next large release. Also, in stead of using IplImages (which needs carefull pointer handling) use the new C++ Mat type which does all this hard stuff for you :)

For new cpp examples, most of the tutorials use these instructions, have a look there for basic interfacing! Like this canny example.


There is a C++ remake of that book planned. What I suggest my students to do is the following. Go to the tutorials page and start working your way through all the samples. Once you have passed them all, AND you understand the code, you will also get the C++ interface.

Some other related books that could be interesting are :

  1. openCV starter book which was just released.
  2. the RAW C++ remake still with errors and unfinished chapters I think.
  3. the master opencv with projects
  4. And last but not least, the opencv computer vision application cookbook

Also, let the fact that we have a 'high' karma not be switched with the fact we should be pros :) Me myself, I have only been around the community for a single year now, and believe me, you get the hang of it quite fast :) Since the whole community think is based on users helping eachother, the karma just show who contributes alot to that aspect.