Let's say we have a single layer of data of size MxN and we want to filter it and let's say the filter size is 11x11.
If we could write our filter in matrix form, such as average, we would do something like this:
But let's say we can not write the filter in a simple matrix, but we have a function handle for it. How can I apply that to the image? One approach is to use the block proc as follow:
That would do the job, but I was wondering if there is another way of applying such filter to image? Any thoughts are appreciated.