=========== Exercises =========== $\DeclareMathOperator{\ssd}{ssd}$ $\DeclareMathOperator{\nssd}{nssd}$ $\DeclareMathOperator{\ncc}{ncc}$ $\newcommand{\one}{\mathbb{I}}$ $\DeclareMathOperator{\nom}{nom}$ $\DeclareMathOperator{\den}{den}$ $\newcommand{\wh}[1]{\widehat #1}$ #. **(M)SSD tracking.** Implement the MSSD (SSD) tracking using a scipy.ndimage generic filter. I.e. implement :eq:`motion-ssd` and :numref:`motion-ssd_argmin`. #. **N(M)SSD tracking.** Prove that .. math:: \frac{1}{M}\sum_{\v y\in\set M} \wh m^2(\v y) = 1 and .. math:: \frac{1}{M}\sum_{\v y\in\set M} \wh f^2(\v x, \v y) = 1