title: Is there a way to solve 3x3 convolution kernel when you are given input & output images?
body: <pre><code>import cv2 as cv
  import numpy as np
  import scipy as ss
  
  inimg=cv.imread(r&quot;D:\Master Mathematics\Modern Numerical Method\Assignment\berries_small.jpg&quot;)
  ouimg=cv.imread(r&quot;D:\Master Mathematics\Modern Numerical Method\Assignment\berries_small_blur.jpg&quot;)
  
  conv=np.zeros((3,3),dtype=int)
  k=np.linalg.solve(inimg,ouimg)
  </code></pre>
  <p>the error code i received was:
  <strong>raise LinAlgError('Last 2 dimensions of the array must be square')</strong></p>
  <p><strong>LinAlgError: Last 2 dimensions of the array must be square</strong></p>
  <p>i am unable to find the 3x3 convolution kernel, and the code keep getting error.</p>