Image Processing Toolbox    

Passing an M-File Function to a Function Function

Create an M-file containing your block-processing function. Using the example function above, your M-file might contain the following lines.

To use your M-file with blkproc, create a function handle (function_handle) to it, and pass in the handle and any desired value for P1. For example,

Figure A-1: Original Image (left) and Brightened Image (right)


 Working with Function Functions Passing an Inline Object to a Function Function