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.
↧