Is there a method in OpenCV which takes an input matrix, an output matrix and a function, and applies this function to each pixel? E.g a function like "check value of pixel, if it's below a certain threshold, set it to 0, otherwise keep the value"
I know I can iterate myself over the pixels of a matrix and apply the function myself, just wondering if there is a function which would save me this work.
If performance is a concern, the following links might be of interest to you:
You can easily create an appropriate LUT if you work with gray scale images.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With