LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Kernel and convolution

Hi,

I need to apply a 3x3 kernel to an 8x8 matrix of arrays. I'm pretty sure I need to use the convolution VI but so far I haven't managed to make it work.
Any Ideas?

Thanks

Cycy
0 Kudos
Message 1 of 2
(3,067 Views)
Hi Cycy,
 
There is a good example on doing convolution by searching for "convolution" in the NI Example Finder in LV 8.0 or higher.  It's called "Edge Detection with 2D Convolution.vi". Basically, you would just have to enter the 2-D arrays (8x8 matrix and the 3x3 kernel) into the X and Y inputs of the Convolution VI (it doesn't matter which input is used for which 2-D array). The output will be a 2-D convoluted array.  
 
Let me know if you still have any problems or questions.
 
Regards
Way S.
NI UK Applications Engineer
 
 
Message 2 of 2
(3,049 Views)