remove this error for adaptive thresholding

HI i want to used adaptive thresholding on to the image but i have get some error can any one help me to remove this error I = imread('C:\Users\sonu\Desktop\oooooo.png'); figure, imshow(I), title('Original Image'); function y = adapt_thresh(x) y = im2bw(x,graythresh(x)); I_thresh = blkproc(I,[10 10],@adapt_thresh);
ERROR ??? Subscripted assignment dimension mismatch.
Error in ==> blkproc at 89 aa(border(1)+(1:ma),border(2)+(1:na)) = a;
Error in ==> adapt at 7 I_thresh = blkproc(I,[10 10],@adapt_thresh);

 채택된 답변

Image Analyst
Image Analyst 2013년 5월 25일
편집: Image Analyst 2013년 5월 25일

0 개 추천

You are aware that there is a built in function to do this (CLAHE) called adapthisteq(), don't you? You don't have to reinvent a version of it (that lacks the contrast limiting benefits of it).

댓글 수: 2

sonu
sonu 2013년 5월 25일
can u plz tell me adapthisteq() is also used for adaptive thresholding
Image Analyst
Image Analyst 2013년 5월 25일
Yes it is. I thought my first response said that.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

질문:

2013년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by