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 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

标签

产品


版本

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by