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.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句