MATLAB: How to encode a low pass filter to an image

digital image processingimageimage analysisimage processing

Hi, I'm quite new to Matlab. im trying to write an encoded code to filter an image. i'm using the following filter code. filter = 1/9 * [1 1 1; 1 1 1; 1 1 1];
i get the message "matrix dimensions must agree", how would you go about filtering a whole image? do i have to loop it somehow? thanks

Best Answer

You can do this using blocproc. Read about blocproc.