OpenCV Pixel Access Manipulation

Standard

To manipulate pixels of an OpenCV Image (Mat) , use the C++ code below:

Output:

Accessing pixels in Python is more easy:

Leave a Reply