• 博客(0)
  • 资源 (1)

空空如也

MATLAB灰度图像拉伸

I=imread('chez.jpg'); J=rgb2gray(I); %输入图像转化为灰度图像 %如果输入的图像已经是灰度图像,则不需要此步骤 subplot(2,2,1),imshow(J) title('原始灰度图') subplot(2,2,2),imhist(J) title('原始灰度直方图') K=imadjust(J); %灰度拉伸,使用函数imadjust %K=imadjust(I,[low_in high_in],[low_out high_out]) subplot(2,2,3),imshow(K) title('灰度拉伸效果图') subplot(2,2,4),imhist(K) title('灰度拉伸后图像直方图')

2010-05-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除