Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Dans cet exercice, le produit de convolution est utilisé sur des images très petites, afin de pouvoir vérifier les résultats par le calcul. On considère l’image 2 × 6 :

g=(111000111000)g = \begin{pmatrix} 1 & 1 & 1 & 0 & 0 & 0 \\ 1 & 1 & 1 & 0 & 0 & 0 \end{pmatrix}

et les trois PSF ci-dessous :

h1=(1−1),h2=(1−1),h3=(121).h_1 = \begin{pmatrix} 1 & -1 \end{pmatrix}, \qquad h_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix}, \qquad h_3 = \begin{pmatrix} 1 & 2 & 1 \end{pmatrix}.
  • Calculez le résultat des convolutions de l’image gg avec chacune des trois PSF.

  • Vérifiez le résultat avec Python. L’image gg peut être définie avec l’instruction :

    ligne = [1, 1, 1, 0, 0, 0]
    g = np.array([ligne, ligne])