摘要: (1)线性变换:通过建立灰度映射来调整源图像的灰度。 k>1增强图像的对比度;k=1调节图像亮度,通过改变d值达到调节亮度目的;0 i = imread('theatre.jpg');i = im2double(rgb2gray(i));[m,n]=size(i);%增加对比度Fa = 1.25; 阅读全文
posted @ 2019-06-16 23:23 Geeksongs 阅读(18934) 评论(0) 推荐(0) 编辑
摘要: >> imhist(f);错误使用 imhist需要的 第 1 个输入, I or X, 应为 二维。 错误原因:读入的图片是三个维度的彩色图片,应该转换成二维的灰度图像。使用函数rgb2gray()将真彩色图像转换为灰度图像,即灰度化处理。 G=rgb2gray(f);imhist(G); 阅读全文
posted @ 2019-06-16 22:15 Geeksongs 阅读(4182) 评论(0) 推荐(0) 编辑

Coded by Geeksongs on Linux

All rights reserved, no one is allowed to pirate or use the document for other purposes.