I am doing a homework about greyscale bitmap and I am going to find the most frequently occuring greyscale level in an image.
value 0=black
255=pure white
however my code will only show the value of 255
am I writing sth wrong of the for loop or the variable of the int?
please help thanks!!