HISTEQ default not consistent with syntax?
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Matt Fig
2012 年 11 月 15 日
IM = imread('cameraman.tif');
I = histeq(IM);
I2 = histeq(IM,ones(1,64)*(numel(IM)/64));
isequal(I,I2)
ans =
1
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!