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!