首页 > 其他 > 详细

直方图均衡化和规定化

时间:2017-06-02 16:49:12      阅读:287      评论:0      收藏:0      [点我收藏+]

直方图均衡化

clear;close all;
A=imread(‘lena_gray_512.tif‘);
B=imadjust(A);
subplot(2,2,1); imshow(A); title(‘原始图像‘)
subplot(2,2,2); imhist(A); title(‘原始图像直方图‘)
subplot(2,2,3); imshow(B); title(‘均衡化图像‘)
subplot(2,2,4); imhist(B);  title(‘均衡化图像直方图‘)


直方图规定化

close all;clc;clear

I=imread(‘woman_darkhair.tif‘);
[counts,x]=imhist(I);
Q=imread(‘lena_gray_512.tif‘);
subplot(321);imshow(I);title(‘原始图像‘)
subplot(322);imhist(I);
subplot(323);imshow(Q);title(‘待处理图像‘)
subplot(324);imhist(Q);
M = histeq(Q,counts);    
subplot(325);imshow(M);title(‘规定化图像‘)
subplot(326);imhist(M);

直方图均衡化和规定化

原文:http://www.cnblogs.com/yangykaifa/p/6933785.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!