The response of the mask is the average of the pixel is that it encompasses. We note that when the mask moves one pixel to the right, it lost on value of the vertical bar on the left, but it picks up an identical one on the right, so the response doesn't change.In fact, the number of pixels belongs to the vertical bars and contained within the mask does not cahnge,regardless of where the mask is located.