Example Code

Continuous Edge Detection Using Morphological Filters

Code and Documents

Attachment

  1. This program uses IMAQdx low level functions to perform continous image acquisition and edge detection using morphological filters and classical edge detection algorithms.  The morphological filters accomplish edge detection by subtracting the erosion of an image from its dilation.
  2. Attached are the example VIs for 2010, 2011, and 2012 versions of LabVIEW.
  3. Necessary software and modules include: Vision Acquisiton Software and Vision Development Module
  4. On the front panel select an IMAQdx compatible camera to acquire images and run the VI. Switch between the morphological filter algorithm or classical edge detection alogrithms through the enum control.

DilateErodeFP.PNG

DilateErode.PNG

Regards,
Isaac S.
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors