Imadjust函数实例
一、基本语法
J = imadjust(I)
J = imadjust(I,[low_in; high_in],[low_out; high_out])
J = imadjust(...,gamma)
newmap = imadjust(map,[low_in high_in],[low_out high_out],gamma)
RGB2 = imadjust(RGB1,...)
二、功能解释
调整图象的像素值,可以改变对比度和颜色,调节灰度图像的亮度或彩色图像的颜色矩阵。
三、实例
1、
RGB1 = imread('flowers.tif');
RGB2 = imadjust(RGB1,[.2 .3 0; .6 .7 1],[]);
figure;
subplot(211);
imshow(RGB1);
title('原图');
subplot(212);
imshow(RGB2);
title('调整后图');
2、RGB1 = imread('flowers.tif');
RGB2 = imadjust(RGB1,[.1 .1 0; .6 .7 1],[]);
figure;
subplot(211);
imshow(RGB1);
title('原图');
subplot(212);
imshow(RGB2);
title('调整后图');
3、RGB1 = imread('flowers.tif');
RGB2 = imadjust(RGB1,[.1 .1 0; .4 .5 1],[]);
figure;
subplot(211);
imshow(RGB1);
title('原图');
subplot(212);
imshow(RGB2);
title('调整后图');
4、RGB1 = imread('flowers.tif');
RGB2 = imadjust(RGB1,[.1 .4 0; .6 .7 1],[]);
figure;
subplot(211);
imshow(RGB1);
title('原图');
subplot(212);
imshow(RGB2);
title('调整后图');
因篇幅问题不能全部显示,请点此查看更多更全内容