1 | initial version |
the "functor" passed to Mat::forEach receives the pixel's value first, and an array containing the indices second.
docs: "Example 2. Using the pixel's position" https://docs.opencv.org/master/d3/d63/classcv_1_1Mat.html#a952ef1a85d70a510240cb645a90efc0d