Stride controls how far the filter moves across the image.
It determines how many pixels the filter skips each step.
Formula: Example: For (7−3)/2 + 1 = 5.
Output Size = ((Input Size - Filter Size) / Stride) + 1
Zero Padding adds extra pixels around the image edges to keep output size under control.
New formula:
Output Size = ((Input Size - Filter Size + 2 × Padding) / Stride) + 1