Estimating Convolution Kernel from Input and Output Images Given an original image and a convolved version of it, I need to calculate the convolution kernel. For example, given:



and



I would like to calculate the convolution kernel that generated the second image from the first (a gaussian in this case). 

The images will be similar to the example, but I can change the configuration slightly to make the process easier (change the shape, have a number of shapes etc.)
Take Fourier Transform of both original image and blurred image, then divide Fourier transform of blurred image by Fourier transform of original image. This will give you the Fourier transform of kernel (except at frequencies with zero value which lead to division by zero). Then take inverse Fourier transform and find the kernel in spatial domain.