作业帮 > 综合 > 作业

数字图像处理直方图均衡化的程序源代码是什么?

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/12 07:42:14
数字图像处理直方图均衡化的程序源代码是什么?
或者思想,
说白了就一句:
histeq(I)
程序如下:
clc;
clear all;
I = imread('d:\Images\hill_histogram.jpg');
I=rgb2gray(I);
J = histeq(I);
subplot(221);imshow(I);
subplot(222); imshow(J);
imwrite(I,'d:\Images\hill_original.tif')
imwrite(J,'d:\Images\hill_histogram.tif')
subplot(223); imhist(I,64)
subplot(224); imhist(J,64)