Interactive Data Language
 
Convolving with User defined Kernels
 
As described previously, the SMOOTH function gives equal weight to the neighbouring pixels.  IDL also allows us to define the form of our filter (kernel, smoother, mask etc) and convolve it with an image. We can therefore create a Gaussian-weighted 5´5 kernel of the form
 

 
and convolve it with an image using the following commands
 
kernel = [[1,2,3,2,1],[2,7,11,7,2],[3,11,17,11,3], $
         [2,7,11,7,2],[1,2,3,2,1]]
 
tv, CONVOL(noisy_image,kernel,TOTAL(kernel))
 
The command: TOTAL(kernel) in the previous line automatically scales the kernel so that the dynamic range of the processed pixel is more or less preserved (it is the same as putting the fraction outside the kernel, as in section a). 
 
 

Exercise 1
 
Edit the original Kernel to make the output image shifted by 3 pixels to the left. 

 


What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."


"Order a custom Paper on Similar Assignment at essayfount.com! No Plagiarism! Enjoy 20% Discount!"