matlab中使用imhist函数查看直方图有问题两幅对比度不同的灰度图,为什么直方图一样?附上Matlab程序:clc;clear all;close all; [f1,map] = imread('D:\Matlab\ceshi.bmp');figure(1);subplot(2,1,1);imshow(f1,map);title

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/30 15:06:56
matlab中使用imhist函数查看直方图有问题两幅对比度不同的灰度图,为什么直方图一样?附上Matlab程序:clc;clear all;close all; [f1,map] = imread('D:\Matlab\ceshi.bmp');figure(1);subplot(2,1,1);imshow(f1,map);title
x]OPǿʂ@kOنr'PcK˪+ *^(N!Fez:+x(Ko<=ϯgyoLk%ʂƧ`w=斋_v[r>~9|ٔoƒlNf9+[+A|=}oK-thAsp^:x h<^;sdjJv\:0]T!喫6}(\_t3V>؟GWP-X_ןgUoƏpz[ IU^)jހ9+a^)kwmx\D L,,840yPѐa:`& 0bYP8MOYg#/ƑP1,YD:.(\cƻd B"Y(C"6eASE#1;:Tpf;D/)f#Ĺ"+^60&9rx^C \&J*.;|/eﰧ;ڝ4(I/? $7^o;9F>[P3':X'xcgmwp@ <7oYsH< #gHRL,]T棡vc5x4ף\ZKj!'?oWpK3~lڔE̊\zrrᓖi9En a}]M$l2y`]~LI

matlab中使用imhist函数查看直方图有问题两幅对比度不同的灰度图,为什么直方图一样?附上Matlab程序:clc;clear all;close all; [f1,map] = imread('D:\Matlab\ceshi.bmp');figure(1);subplot(2,1,1);imshow(f1,map);title
matlab中使用imhist函数查看直方图有问题


两幅对比度不同的灰度图,为什么直方图一样?
附上Matlab程序:
clc;

clear all;
close all;

 
[f1,map] = imread('D:\Matlab\ceshi.bmp');

figure(1);
subplot(2,1,1);
imshow(f1,map);
title('原图像');
subplot(2,1,2);
imhist(f1,map);
axis on;
title('直方图');

 
[f2,map1] = imread('D:\Matlab\ceshi100.bmp');

figure(2);
subplot(2,1,1);
imshow(f2,map1);
title('修改图像');
subplot(2,1,2);
imhist(f2,map1);
axis on;
title('直方图');
 
 

matlab中使用imhist函数查看直方图有问题两幅对比度不同的灰度图,为什么直方图一样?附上Matlab程序:clc;clear all;close all; [f1,map] = imread('D:\Matlab\ceshi.bmp');figure(1);subplot(2,1,1);imshow(f1,map);title
从你的两张图上真看不出太大的差别来,视觉有时会欺骗人的.
另外,你看到直方图挺像,其实也未必一样.