DETERMINING THE AVERAGE COLOR OF AN IMAGE USING C++ AND OpenCV

Read full text
Authors: Muzaffar BOTIROV
Cited by: 0

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.

Fields of Study & Subjects

Color Science and Applications Image Enhancement Techniques Digital Imaging for Blood Diseases

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
6 January 2026