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:

Histogram with OpenCV

Standard

Generating a histogram in OpenCV is very straightforward.

C++ Generate histogram opencv

 Draw histogram in Python:

 Output:

Uncategorized