Image Processing Toolbox | ![]() ![]() |
Passing an Inline Object to a Function Function
Create an inline object at the MATLAB prompt. Pass the inline object and any desired value for P1
to blkproc
. For example,
myblkfun = inline('uint8((double(x)*2))',1); I = imread('cameraman.tif'); I2 = blkproc(I,[10 10], myblkfun, 2);
The results are the same as those shown in Figure A-1. For more information about inline functions, see the online MATLAB reference page for inline
.
![]() | Passing an M-File Function to a Function Function | Passing a String to a Function Function | ![]() |