MATLAB: How to blur the left half image alone

how to blur the selected part (like left half of the image or selected part)

Hi all,
I want to blur the right half or left half of the image alone… How to do that..
Thanks in advance

Best Answer

[rows, columns] = size(yourImage);
midColumn = ceil(columns/2);
leftHalf = yourImage(:, 1:midColumn);
rightHalf = yourIMage(:, midColumn+1:end);
windowwindowSizeSzie = 11;
blurryLeft = imfilter(leftHalf, ones(windowSize)/windowSize^2);
blurryRight = imfilter(rightHalf, ones(windowSize)/windowSize^2);