NAryMatIterator documentation example does not compile

asked 2014-07-01 11:56:29 -0600

rohitr gravatar image

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

edit retag flag offensive close merge delete

Comments

you think, you could at least start it ?

berak gravatar imageberak ( 2014-07-01 12:07:16 -0600 )edit
1

I just created Bug#3787. I was looking for a way to do element-wise traversal of several matrices of same dimensions but unknown element size concurrently. I'm not sure if NAryMatIterator is the way to do it.

rohitr gravatar imagerohitr ( 2014-07-01 14:42:29 -0600 )edit

can't help you with that. still, you found a valid issue on the way, imho.

berak gravatar imageberak ( 2014-07-01 14:53:51 -0600 )edit