In part 3 we were asked to carry out the steps of part 1 but for a color image. The main component that changes here is that our image now has an extra color dimension, and that color dimension contributes to the color that pixel exhibits through its underlying R, G, and B value. Not much changes in the codes from the first part, except now we have another dimension that we have to index over in a for loop. Codes for both the 8x8 compression and the full image compression are given by col8.m and colimg.m. The images can be seen below.