Generate in Matlab a 60x60 gray-level image with an intensity
increase
in x and y by 20 gray levels per block of 10x10 pixels per
direction). Start by defining
a matrix, called board, with the correct values and convert to a uint8
format (boardu), an indexed image (boardi) and save to files from
Matlab
using the save command. In addition, write C programs to
write
an ASCII file of the image (use printf on the image row by row), as
well
as a binary version of the file using unsigned char bytes (use the C
write
function). Create a TIFF image from Matlab as well using the
print command.
Compare the memory storage requirements of these files, as well as compressed versions using the compress command and the gzip command. Make a table.