DETERMINING THE AVERAGE COLOR OF AN IMAGE USING C++ AND OpenCV
Main Article Content
Abstract:
This article presents a method for determining the average color of an image using the C++ programming language and the OpenCV library. A digital image is represented as a pixel matrix, where each pixel consists of RGB values. The average color is calculated by averaging all pixel values of the image. The proposed approach is simple and computationally efficient, making it suitable for applications in computer vision, image processing, robotics, and intelligent systems. The paper provides the theoretical background, a sample C++ program, and an analysis of experimental results.
Article Details
How to Cite:
References:
Bradski, G., & Kaehler, A. (2008). Learning OpenCV: Computer Vision with the OpenCV Library. O’Reilly Media.
OpenCV Documentation: https://docs.opencv.org/
Gonzalez, R. C., & Woods, R. E. (2018). Digital Image Processing. Pearson Education.
Szeliski, R. (2022). Computer Vision: Algorithms and Applications. Springer.
Muzaffar Batirov. (2025). Image Processing Methods Using C++ and OpenCV. Collection of Scientific Developments of Kokand University.

