the Size argument refers to the filter / kernel size, not to the image size.
please try to find out, what a box filter does, and why it makes not much sense to have one in the size of the whole image
the Size argument refers to the filter / kernel size, not to the image size.
please try to find out, what a box filter does, and why it makes not much sense to have one in the size of the whole image