Data Structures - DCC/UFMG
This practical project aims to revisit some fundamental concepts of programming development in C/C++, as well as introduce other concepts in terms of abstract data types, particularly their abstraction, performance, and robustness. You will implement a program for converting a color image to grayscale. A digital grayscale image is an image in which the value of each pixel is a sample from a color space. Images of this type are typically composed of various shades of gray, ranging from black as the lowest intensity to white as the highest intensity. Grayscale images are usually the result of calculating the intensity of light at each pixel across the electromagnetic spectrum (such as the visible spectrum).
The formula used for converting RGB values to grayscale is 𝑌 = (49 / 255) * (0.30R + 0.59G + 0.11B).