Assignment:
Write a MIPS program that will
1) read in an image name (gray level image in binary format), the number of rows and the number of columns,
2) read in the image (must be implemented using a function),
3) compute its histogram (must be implemented using a function), and
4) then output the histogram (must be implemented using a function).
You can assume the image size is no larger than 500x500. You can use the three images that provide in the following attachment
Additional information:
The histogram of an image is widely used to characterize the image in content-based retrieval and other applications. It counts the number of occurrences of all the pixel values (0 - 255 in this case). The following C/C++ function image computes the histogram of the input image.