HISTEQ default not consistent with syntax?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
If I have an 8-bit image IM (e.g. cameraman.tif), why does histeq(IM) produce a different result than histeq(IM,ones(1,256))??
Shouldn't they be identical? The description says hgram defaults to ones(1,n)*prod(size(A))/n. Since cameraman is 256x256 and n=2^8, shouldn't it scale normally?
0 Kommentare
Akzeptierte Antwort
Matt Fig
am 15 Nov. 2012
IM = imread('cameraman.tif');
I = histeq(IM);
I2 = histeq(IM,ones(1,64)*(numel(IM)/64));
isequal(I,I2)
ans =
1
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Test Scripts finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!