数字图像处理 第6章 彩色图像处理

数字图像处理 第6章 彩色图像处理

函数处理

f=imread('604.tif');
[x1,map1]=rgb2ind(f,8,'nodither');%不抖动
subplot(2,2,1),imshow(x1,map1)
[x2,map2]=rgb2ind(f,8,'dither');%抖动
subplot(2,2,2),imshow(x2,map2)
g=rgb2gray(f);%灰度图像
g1=dither(g);%抖动
subplot(2,2,3),imshow(g)
subplot(2,2,4),imshow(g1)

猜你喜欢

转载自blog.csdn.net/u011752195/article/details/80845552