what is the description of the line myFilterHandle = @myFilter;

1 回表示 (過去 30 日間)
pammy
pammy 2013 年 1 月 24 日
myFilterHandle = @myFilter;
blockyImage = blockproc(grayImage,[windowSize windowSize], myFilterHandle);
tell me the description of this code.....
  1 件のコメント
pammy
pammy 2013 年 1 月 25 日
i did get what u said n thank u sir....

サインインしてコメントする。

採用された回答

Wayne King
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 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by