Feature specifications are maintained as local markdown files generated from template repository issues.
Print the dimension of the input image in the output terminal.
Print the color in RGB of the first pixel (top, left or coordinates 0,0) in the output terminal.
Print the color in RGB of the tenth pixel (coordinates 9, 0) in the output terminal.
Print the color in RGB of the first pixel of the second line (coordinates 1,0) in the output terminal.
To facilitate access to pixels of the data array, we propose to define a structure and a function to access to specific pixel at position x,y.
Print the pixel with the with the largest sum of RGB components in the output terminal.
Print the pixel with the with the smallest sum of RGB components in the output terminal.
Print the pixel with the maximum R, G, or B value in the output terminal.
Print the pixel with the minimum R, G, or B value in the output terminal.
Define and implement a function called stat_report to write in a text file the result of:
stat_report
Transform the image to keep only the red component.
Transform the image to keep only the green component.
Transform the image to keep only the blue component.
Transform the image to keep only a gray version (an average of the R, G, B components for each pixel).
Transform the image so that colors are inverted (e.g., new_R = 255 - old_R).
new_R = 255 - old_R
Transform the image to keep only a gray version, but with a smarter computation than a simple average of the R, G, B components.
Transform the image with a rotation effect: 90° clockwise rotation.
Transform the image with a rotation effect: 90° anti-clockwise rotation.
Transform the image with a mirror effect: horizontal symmetry.
Transform the image with a mirror effect: vertical symmetry.
Transform the image with a mirror effect: both horizontal and vertical symmetry.
Crop the image. The result is the intersection of a cropping box (defined by a it center and dimension) and the original image
Scale the image (smaller or larger)
Scale the image (smaller or larger) via a smarter algorithm than nearest-neighbor.
Transform the image to desaturate colors.