I'm not sure if there exists a function in OpenCV (C++) to do this.
I want to call a custom defined function for every pixel of an cv::Mat in OpenCV and the entire result should be stored in a matrix.
Can I do this in a single line of code (something similar to map function in Python)?