what is the description of the line myFilterHandle = @myFilter;
조회 수: 1 (최근 30일)
이전 댓글 표시
myFilterHandle = @myFilter;
blockyImage = blockproc(grayImage,[windowSize windowSize], myFilterHandle);
tell me the description of this code.....
채택된 답변
Wayne King
2013년 1월 24일
The @ notation is for an anonymous function. It's a handle for a function
presumably this function myFilter is defined somewhere on your path or previously in the command window.
For example:
f = @(x) x^2;
f(2)
f(2) returns 4 here.
In your example you are taking the image in grayImage and using the function myFilter() to operate on blocks of that image with dimension [windowSize windowSize]
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!