How to blur some part of image without affecting rest of the part?

8 visualizaciones (últimos 30 días)
Narendra Kumar
Narendra Kumar el 5 de Jul. de 2022
Respondida: Chunru el 5 de Jul. de 2022
Suppose I have an image (Cameraman.tif) and I want to select some part of the input image then I Want to apply imfilter() operation only for the selected part not for the rest part. Lastly, when i will showing the blurred image then It has the same size which is equal to input image.

Respuestas (1)

Chunru
Chunru el 5 de Jul. de 2022
I = imread("peppers.png");
imshow(I)
LEN = 31; THETA = 11;
PSF = fspecial('motion', LEN, THETA);
% Blur part of image
I(100:300, 100:300, :) = imfilter(I(100:300, 100:300, :), PSF);
figure
imshow(I)

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by