LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image display gets really slow when loaded with an IMAQ image of type float

Hi,

 

I am working on an application which loads monochrome tif images. These images are then processed (one image divided by another). The resulting array/image ist of type float and is then converted to an IMAQ image and then transfered to an "Image Display" control. When loaded the "Image Display" seems to get blocked in some way. The whole labview UI is unresponsive, the ROI tools are really slow etc. Attached is a screenshot of my program. Any ideas why this slow down happens?

 

Thanks!

Bastian Hundt

0 Kudos
Message 1 of 3
(2,755 Views)

Hi,

 

First comment, if I were you I would put the "image reading part of the code" before and out of the while loop, so you only do that once. Then instead of doing "image to array" - "divide" - "array to image" I would simply use the "IMAQ divide" function that will be much faster.

 

Please try these modification and see if it works better.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 3
(2,724 Views)

Hi,

 

thanks for your answer. I tried both of your suggestions, neither worked (the loading outside of the loop is a good idea of course). But nevertheless I was able to fix the problem: what you obviously should not do is to divide one image by another when the images potentially have zeros as their pixel values. So the solution is to check for zeros in the arrays before dividing the images. Interestingly the IMAQ Divide vi seems not to do that.

 

Thanks again for your answer!

0 Kudos
Message 3 of 3
(2,706 Views)