Why Does My Post-Processed Image Display Sometimes Show Pre-Processed Images With IMAQ Functions?

Updated Mar 20, 2018

Reported In

Hardware

  • Camera

Software

  • Vision Development Module
  • LabVIEW

Driver

  • NI-IMAQ

Issue Details

I am using an IMAQ image processing VI, such as the IMAQ Extract Single Color Plane VI. When I put an indicator on the Image Dst Out terminal, I occasionally see the pre-processed image instead of the post-processed image. How can I fix it?

Solution

Allocate a separate buffer for storing the post-processed image. Pass the reference to this buffer to the Image Dst input to of the IMAQ Extract Single Color Plane VI or similar image processing VI.

Additional Information

The solution mentioned above will create a separate buffer for the post-processed images rather than overwriting the buffer for the pre-processed image, thus preventing the pre-processed image from being displayed. See this NI-IMAQ Memory Allocation document for more information about allocating buffers for images. 

WAS THIS ARTICLE HELPFUL?

Not Helpful