MATLAB加伽玛分布噪声图像和MATLAB加伽玛分布噪声图像直方图

您所在的位置:网站首页 临风暖阳 MATLAB加伽玛分布噪声图像和MATLAB加伽玛分布噪声图像直方图

MATLAB加伽玛分布噪声图像和MATLAB加伽玛分布噪声图像直方图

2023-12-10 18:52| 来源: 网络整理| 查看: 265

在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z1 = imnoise_gamma(size(im,1),size(im,2),1,0.1); Z1 = im2uint8(Z1); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im);title(‘加伽玛分布噪声图像’) subplot(122); imhist(Z1); title(‘加伽玛分布噪声图像直方图’) 在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z1 = imnoise_lognormal(size(im,1),size(im,2),2,3); Z1 = uint8(Z1); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im);title(‘加对数正态分布噪声图像’) subplot(122); imhist(Z1); title(‘加对数正态分布噪声图像直方图’) 在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z1 = imnoise_poission(im,size(im,1),size(im,2),0.3); Z1 = im2uint8(Z1); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im);title(‘加泊松分布噪声图像’) subplot(122); imhist(Z1); title(‘加泊松分布噪声图像直方图’) 在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z0 = imnoise_rayleigh(size(im,1),size(im,2),5,5); Z1 = uint8(Z0); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im);title(‘加瑞利分布噪声图像’) subplot(122); imhist(Z1); title(‘加瑞利分布噪声图像直方图’) 在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z1 = imnoise_t(size(im,1),size(im,2),3); Z1 = uint8(Z1); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im);title(‘加t分布噪声图像’) subplot(122); imhist(Z1); title(‘加t分布噪声图像直方图’) 在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z1 = imnoise_uniform(size(im,1),size(im,2),50,100); Z1 = uint8(Z1); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im); title(‘加均匀分布噪声图像’) subplot(122); imhist(Z1); title(‘均匀分布噪声图像直方图’) 在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z0 = imnoise_Weibull(size(im,1),size(im,2),5,5); Z1 = im2uint8(Z0); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im);title(‘加威布尔分布噪声图像’) subplot(122); imhist(Z1); title(‘加威布尔分布噪声图像直方图’) 在这里插入图片描述 clc,clear,close all warning off feature jit off im = imread(‘coloredChips.png’); Z1 = imnoise_X2(size(im,1),size(im,2),3); Z1 = uint8(Z1); % 类型转换 figure(‘color’,[1,1,1]), im(:,:,1) = im(:,:,1) + Z1; % R im(:,:,2) = im(:,:,2) + Z1; % G im(:,:,3) = im(:,:,3) + Z1; % B subplot(121); imshow(im);title(‘加卡方噪声图像’) subplot(122); imhist(Z1); title(‘加卡方噪声图像直方图’)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3