フィルターのクリア

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

9 ビュー (過去 30 日間)
Narendra Kumar
Narendra Kumar 2022 年 7 月 5 日
回答済み: Chunru 2022 年 7 月 5 日
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.

回答 (1 件)

Chunru
Chunru 2022 年 7 月 5 日
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)

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by