clear all;
close all;
clc;
%1. Display the image.
I=imread('blobs.png');
subplot(2,2,1);
imshow(I);
title('Original Image');
%2. Adjust the histogram so that 1% data is saturated at high and low intensities.
H1=fspecial('motion',50,45); % inducing perpendicular motian blur to the original image
blurred_im=imfilter(I,H1);
subplot(2,2,2);
imshow(blurred_im);
title(' motion blurred image');