摘要: 1、图像抖动 处理结果 = dither(原始图像) %% 图像抖动 I = imread('cameraman.tif'); subplot(1,2,1),imshow(I); J = dither(I); subplot(1,2,2),imshow(J); 2、数字水印 (1)嵌入水印的过程: 阅读全文
posted @ 2020-05-13 23:26 红叶楠木 阅读(1069) 评论(0) 推荐(0) 编辑
摘要: 1、图像滤波 步骤1:使用fspecial函数创建二维滤波器 步骤2:使用函数imfilter进行滤波 %% 滤波 I = imread('cameraman.tif'); subplot(3,3,1),imshow(I),title('原图像'); % 均值滤波 fs1 = fspecial('a 阅读全文
posted @ 2020-05-13 21:09 红叶楠木 阅读(4719) 评论(0) 推荐(0) 编辑
摘要: 1、JPEG压缩 imwrite(原始图像,目标图像,'quality',比率) 比率:[0, 100] 值越小,压缩比率越大 %% JPEG压缩 I = imread('cameraman.tif'); % imshow(I); imwrite(I,'test.jpg','quality',10) 阅读全文
posted @ 2020-05-13 00:01 红叶楠木 阅读(1720) 评论(0) 推荐(0) 编辑