필터 지우기
필터 지우기

What is the difference between functions imhist and hist?

조회 수: 3 (최근 30일)
Jyothis Jose
Jyothis Jose 2014년 5월 4일
편집: Youssef Khmou 2014년 5월 4일
Please anyone tell me the difference between functions imhist and hist. Can't we use function 'hist' for finding histogram of an image? If not, why?

채택된 답변

Youssef  Khmou
Youssef Khmou 2014년 5월 4일
편집: Youssef Khmou 2014년 5월 4일
Imhist function is designed to work with images which can have different numeric types such as uint8, uint16, while hist is for other numeric data. In terms of functionality, hist is general function and imhist is for special case of images. here is an example for comparison :
I=im2double(imread('circuit.tif'));
F=hist(I(:),500);
figure; plot(F)
F2=imhist(I,500);
figure; plot(F2)
% This example needs adjustment of the x axis ...

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by