Corner values depend on padding

Apply a 3×33\times3 mean filter to the full image shown, keeping an output of the same size. With zero padding, every location outside the image has value zero. With replication padding, each outside location uses the nearest boundary pixel, including at corners.


A two by two image contains intensities eighteen, twenty-seven, thirty-six, and forty-five.


For both rules, divide each neighbourhood sum by nine. Enter the dimensionless top-left and bottom-right output values as exact integers, without clipping or rounding intermediate calculations.

Boundary ruleTop-left outputBottom-right output
Zero padding
Replication padding

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Image Analysis Questions: