Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set the LUT binary thresholds?

In a LabVIEW vi I am controlling the acquisition of an image with the IMAQ Property Node. I can select the LUT through the image parameters to Binary or Inverse Binary. However, I can't find the parameters to set the thresholds for binary conversion, both high and low.

How do I set these?
0 Kudos
Message 1 of 4
(3,614 Views)
I don't think that binary LUT is a constant converting anything between 0-127 to 0 and the rest to 1. You should use IMAQ Threshold instead, that'll let you change the threshold value.
0 Kudos
Message 2 of 4
(3,614 Views)
I was trying to emulate the properties available in Measurement & Automation Explorer for the camera. Binary is listed as a LUT with controls to set the threshold leves. If I select the Binary LUT through software, the display is black, and if I select Inverse Binary the display is all white. Therefore it must be using an LUT to determine the values. I can't find anything in the property node to set these values however.

Using IMAQ Threshold will work, but I was assuming using a LUT is different and possibly a speed advantage? Since the LUT is applied before snapping the image, would it not be faster than processing the image later?

Excuse my ignorance on how the low level IMAQ works.
0 Kudos
Message 3 of 4
(3,614 Views)
Hello,

There's no way to change the pre-programmed LUTs but you can create your own and upload that LUT using IMAQ Set User LUT function. This will be as fast as any other pre-programmed LUTs since it'll be happening onboard.
Hope this helps!

Regards,

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(3,614 Views)