Image Processing Toolbox | ![]() |
Passing a String to a Function Function
You can also pass an expression to a function function. Just set the fun
parameter to a string containing your expression. For example,
I = imread('cameraman.tif'); I2 = blkproc(I,[10 10],'uint8((double(x)*2))');
The results are the same as those shown in Figure A-1.
![]() | Passing an Inline Object to a Function Function |