Loop (!) over the image using a 5×5 pixel window. For each such window, compute the average pixel value and store the result in a new image. Treat borders in some controlled way and make sure the result has the same size in pixels as the original image. You will need at least two nested for-loops, to scan rows and columns in your image.
MATLAB: How to make a Loop (!) over the image using a 5×5 pixel window
5×5 pixel windowMATLABnested for loops
Related Question
- What is the length limit for operating system commands that can be executed using the functions DOS, UNIX, SYSTEM or the bang (!) operator
- How can i convert an image to grayscale using for loop
- Does the function freeze or hang when I use the bang or exclamation point operator (!) or DOS to invoke a separate process from MATLAB
Best Answer