how can i find local histogram equalization ?
조회 수: 2 (최근 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!