How Can I Create a Larger 7x7 or 13x13 Kernel to Use with the IMAQ Functions?

Updated Jul 20, 2018

Reported In

Software

  • LabVIEW
  • Vision Development Module

Issue Details

LabVIEW Help documentation only states that I can use 1x1, 3x3, 5x5, or 7x7 kernels for the sizes of convolutions. Can I use a bigger convolution array?

Solution

You can find a list of built-in kernels with their numbers in the IMAQ Vision Concepts Manual, but you can also create your own kernel size in one of two ways: 
  • You can use the IMAQ BuildKernel VI which takes a string specifying the kernel (using commas or spaces to separate the columns and a linefeed to separate the rows) and outputs a kernel. 
  • You can create a 2-dimensional array yourself and wire it directly in to IMAQ Convolute. 

Additional Information

Be sure to keep in mind when using custom size kernels with the IMAQ Convolute the connected source image must have been created with a border capable of supporting the size of the convolution matrix. For a 9x9 kernel, the image would need to have a minimum border of 4, for a 7x7 kernel minimum border of 3, for a 5x5 kernel the minimum border is 2, for a 3x3 kernel the minimum border is 1, etc.

WAS THIS ARTICLE HELPFUL?

Not Helpful