LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert gray to binary image:: I am tried please help

Hi member

I have this vi that do some processing on the aquired image from webcam

every time I put threshold vi  on the result of math script ,every display image vi all ways become black 

if I remove the threshold vi the vi work well


Please I am tired

the threshold should be between th and 255

 

visionlab.png

best regards

0 Kudos
Message 1 of 4
(2,277 Views)

Hi Saliim,

 

I would suggest making sure that you create a new IMAQ image buffer for storing the thresholded image. This will prevent the thresholded image from overwriting the original image in memory. I hope this helps!

David S.
Message 2 of 4
(2,228 Views)

thank dear

as you said extacllay ::::solved
before  i closed the thrid

how can i speed up the excution of math script??

0 Kudos
Message 3 of 4
(2,219 Views)

Hi Saliim,

 

I'm glad I could help! As far as increasing the speed of the math script node, I would recommend taking a look at some of these threads for tips:

 

Mathscript speed of execution

 

How fast is MathScript

 

It looks like there may not be too much to do to increase the execution speed since there's lots of overhead with calling Math Script in LabVIEW. You may look into recreating the code in LabVIEW. 

David S.
Message 4 of 4
(2,206 Views)