Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

cv::Mat.forEach w/ index

$
0
0
AFAIK the signature of the function param of Mat.forEach is: void (*)(const T value, const *int pos); Now, I'm not sure what the pos argument is and I don't think the documentation is absolutely clear on that. From the documentation, it looks like this is the channel of the current element? Is there any way to get the current row/column/index in that function? I basically want to identify certain values and get that value plus an index, so that I know where in the Matrix I can find it.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>