The document contains code to perform image processing tasks on a photo file. It loads the original photo, displays it, and reports the size. It then resizes the photo to 300x230 pixels, displays it and reports the new size. Next, it converts the photo to grayscale, displays it and reports the size. Finally, it generates and plots the histogram of the grayscale image.
The document contains code to perform image processing tasks on a photo file. It loads the original photo, displays it, and reports the size. It then resizes the photo to 300x230 pixels, displays it and reports the new size. Next, it converts the photo to grayscale, displays it and reports the size. Finally, it generates and plots the histogram of the grayscale image.
The document contains code to perform image processing tasks on a photo file. It loads the original photo, displays it, and reports the size. It then resizes the photo to 300x230 pixels, displays it and reports the new size. Next, it converts the photo to grayscale, displays it and reports the size. Finally, it generates and plots the histogram of the grayscale image.