skip computation for few outer pixels. https://github.com/Lightning-AI/torchmetrics/blob/v1.4.0.post0/src/torchmetrics/functional/image/ssim.py#L177