MATLAB: What is the difference between a weighted mean filter and an alternative mean filter in low pass filtering

computer visionComputer Vision Toolboxdigital image processingfilterImage Processing Toolbox

For an assignment, I've been asked to implement both of these filters and apply them to an image with salt and pepper noise.
Based on the lecture notes, I'm having trouble understanding the difference between a weighted mean filter and an alternative
mean filter. I would appreciate If someone could clarify.

Best Answer

As per my undestanding, in weigthed mean the mask coefficients are not "1"