Computer Vision Foundations · free preview
Boundaries and Padding
Convolution near the image border needs samples that do not exist, and the choice of invented samples, zero, circular or mirror, visibly changes the output.
1. The border asks for missing samples
The border asks for missing samples
2. Zero, circular and mirror
Zero, circular and mirror
3. Mirror wins against ground truth
Mirror wins against ground truth
4. Choosing a padding scheme
You must blur a large natural photograph near its edges with a wide box kernel. Which padding choice best matches what the blur would look like if you had photographed a wider view?
5. Reading circular indexing
In circular convolution the kernel index is read modulo N, as in . With , and , which kernel index is used?
6. Mirror padding one step
A signal begins with the values . With mirror padding, the phantom sample immediately to the left of the array reflects the first real sample's neighbor. Write the value of the first phantom sample to the left of the array.
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free