In this case, the filter in question is a FIR with the coefficients specified from the command :
The last command just copies a part from the filtered data into another vector (starting from 10 to the end). You can read more about FIR filters onhttp://en.wikipedia.org/wiki/Finite_impulse_response if you have any question about them. You can also check each command's help on MATLAB, they are very useful and well-described. Try:
It blurs the image in a sliding 8 element wide box. The "cog" image will be blurred horizontally only, not vertically. Then you are extractingthe top 10 rows of the blurred image into another image called cog1.