直方图均衡化

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);

相关文章:

  • 2021-11-26
猜你喜欢
  • 2022-02-06
  • 2021-12-05
  • 2021-04-15
  • 2021-11-06
  • 2021-11-30
  • 2021-11-22
相关资源
相似解决方案