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

1 Ansicht (letzte 30 Tage)
pammy
pammy am 24 Jan. 2013
myFilterHandle = @myFilter;
blockyImage = blockproc(grayImage,[windowSize windowSize], myFilterHandle);
tell me the description of this code.....

Akzeptierte Antwort

Wayne King
Wayne King am 24 Jan. 2013
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]

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Functions finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by