Regarding Image Processing - nlfilter, blockproc, colfilt
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi all, I'm currently running a script that requires a sliding window through an image. For each window, I have to compute the histogram equalization to apply to it.
I've explored nlfilter, blockproc and colfilt for this purpose.
When I executed nlfilter in this manner:
fun=@(x)histeq(x(:));
A=nlfilter(B,[3 3],fun);
It says that: Assignment has more non-singleton rhs dimensions than non-singleton subscripts.
And when I try to run blkproc():
fun=@histeq;
b=blkproc(B,[3 3],fun);
While the code runs well, but the end result is not what i am supposed to get, it sort of outlines the edges for some reason.
I believe its possible to run nlfilter with a sliding window based on histeq from each window, but I just cannot figure out whats going wrong.
Just a question, i read that colfilt is unable to accept histeq as function, is it true?
Thanks guys for your advice. Much appreciated.
Regards Corse
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!