Matlab去除图片上水印
Matlab去除图⽚上⽔印
<span >I=imread('C:/Users/liwei/Desktop/bg.jpg');%读⼊图像
figure, imshow(I);%显⽰去⽔印前的图像
t =I(220:270,200:400,1:3);%⼤致估计⽔印区域
figure, imshow(t);
t1 = t(:,:,1);%抽取原图像r的R,G,B的其中⼀维得到灰度矩阵
figure, imshow(t1);
t2 = t(:, :, 2);
figure, imshow(t2);
t3 = t(:, :, 3);
figure, imshow(t3);
[m,n] = size(t2)
for i = 1:m
for j = 1:n
if t2(i,j) >= 190
t2(i,j) = 170;
end
end
end
figure, imshow(t2);
for i = 1:m部队工资
for j = 1:n
if t3(i,j) >= 190
t3(i,j) = 170;
end
end
嘉兴休闲
end
figure, imshow(t3);
for i = 1:m
for j = 1:n
if t1(i,j) >= 190
犹如怎么造句>qq报仇器t1(i,j) = 170;
end
end
end如何打开资源管理器
imshow(t1);
for i = 1:m
for j = 1:n
t(i,j,1) = t1(i,j);
t(i,j,2) = t2(i,j);
t(i,j,3) = t3(i,j);
end
end
figure, imshow(t);
for i = 1:51
广州旅游景点介绍
for j = 1:201
I(i + 219, j + 199, 1:3)=t(i, j, 1:3);
end
end
figure, imshow(I);</span>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。