image=imread('explosion.jpg');
imagengray = rgb2gray(image);
new_image=reduce_intensity(imagengray, 128);
imshow(new_image);
new_image=average_image(imagengray, 10);
imshow(new_image);
new_image=rotate_image(imagengray, 3.1416 / 2);
imshow(new_image);
new_image=imrotate(imagengray,45);
imshow(new_image);
new_image=reduce_image_size(imagengray, 4);
imshow(new_image);
DCT+Quantization Table 8x8 - RGB and Grayscale
new_image = jpegcompress(image);
imshow(new_image);
new_image = jpegcompress(imagengray);
imshow(new_image);
FFT+Quantization Table 8x8 - Grayscale
new_image = jpegcompressfft(imagengray);
imshow(new_image);