图像分割基础算法与实现实例
发布时间
阅读量:
阅读量
近期开展的项目聚焦于图像处理方向,进行了初步探索,并通过资料搜集完成了若干基础功能的实现。
一、图像反转
I=imread('input_image.jpg');
J=double(I);
J=-J+(256-1); %图像反转线性变换
H=uint8(J);
subplot(3,3,4),imshow(H);
title('图像反转线性变换');
axis([50,250,50,200]);
axis on;
二、 灰度线性变换方法
I=imread('input_image.jpg');
subplot(3,3,1),imshow(I);
title('原始图像');
axis([50,250,50,200]);
axis on;
I1 = rgb2gray(I);
subplot(3,3,2),imshow(I1)
title('灰度图像')
axis([50,250,50,200]);
grid on;
axis on;
K=imadjust(I1,[0.3 0.7],[]);
subplot(3,3,3),imshow(K);
title('线性变换图像[0
全部评论 (0)
还没有任何评论哟~
