Ask Your Question

Revision history [back]

NAryMatIterator documentation example does not compile

Hello, In OpenCV 2.4.9.0 documentation, the example function "computeNormalizedColorHist" for NAryMatIterator does not compile because the iterator it is declared twice. First as:

MatConstIterator_<vec3b> it = image.begin<vec3b>(), it_end = image.end<vec3b>();

then later as:

NAryMatIterator it(&hist, &plane, 1);

This needs to be fixed. Also, I find the documentation and examples for this function insufficient and hard to understand. Please advise on fixing this problem.

Rohit