We should implement statistics in main.c but statistics says we should implement image_brightness in image.c. Im confused, should I first implement image_brightness in image.c and then use this function in statistics ? And where do I get the width and height ?
statistics(...) in the main function should print the width, hight and brightness of the image.
image_brightness(...) should return the brightness of an image. Since you need the brightness in
statistics(...) calling the function
image_brightness(...) might be helpful.
The ordner in which you implement these two function is your choice.
The project presentation might tell you how to access the image hight and width. Especially the code example.
Hope this helps