how can i find local histogram equalization ?
3 次查看(过去 30 天)
显示 更早的评论
how can i find local histogram?
i used this code but it gives an error
i= imread('braiin.png');
ff=im2double(i);
w=input('\nEnter the Neighborhood or Window size : ');
k=input('\nEnter the value of the constant k (value should be between 0 and 1) : ');
M=mean2(ff);
z=colfilt(ff,[w w],'sliding',@std);
m=colfilt(ff,[w w],'sliding',@mean);
A=k*M./z;
g=A.*(ff-m)+m;
sublpot(1,2,1)
imshow(g);
this is the error:
Error using >=
Matrix dimensions must agree.
Error in colfilt (line 134)
if all(block>=size(a)), % Process
the whole matrix at once.
Error in Untitled22 (line 27)
z=colfilt(ff,[w w],'sliding',@std);
any other suggested soulution?thanks
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!