フィルターのクリア

noise is added to the central region of each image

1 回表示 (過去 30 日間)
arwa allubani
arwa allubani 2020 年 10 月 3 日
コメント済み: arwa allubani 2020 年 10 月 3 日
noise is added to the central region of each image ???

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 10 月 3 日
編集済み: KALYAN ACHARJYA 2020 年 10 月 3 日
Considering im is a gray level image, and the central part of the image considered as mid section of the image as per its rows and clumns number or you may change the segment as per your requiremnt.
original_im=im;
[r,c]=size(im);
cent_part=im(round(r/4):round(3*r/4),round(c/4):round(3*r/4));
im(round(r/4):round(3*r/4),round(c/4):round(3*r/4))=cent_part+imnoise(cent_part,'gaussian');
% You can add any other types of noises here,'gaussian' just for example
imshow([original_im,im]);
title('Priginal Image Noise Added Image');

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by