MATLAB: Display mean and max of images….

Image Processing Toolbox

I rotate an image at a particular angle and then find its mean and max value. How do I display the mean and max image as shown in the 2nd and 3rd columns of the link below?
The column 1 - is the rotated image at an angle,
column 2 - mean
column 3 - maximum
Please, can someone help me how to display the mean and max images as in the 2nd and 3rd column of the link?

Best Answer

mean_img = mean(Img(:));
max_img = max(Img(:));