ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove threshold imaq image

Solved!
Go to solution

Hello,

 

I´m using labview 2011 with development vision.

 

I'm working with some images and created a function to enable and disable the image THRESHOLD.

I can open the original image and activate the threshold but can not get the image back to the original when I disable the threshold.

Does anyone know how I could activate it and deactivate it with a button?

 

Thank You.

0 Kudos
Message 1 of 6
(4,368 Views)

1. Try to make copy of your image (with IMAQ Copy) then apply Threshold to copy.

 

2. Show your code here.

 

0 Kudos
Message 2 of 6
(4,359 Views)

Here is the code.

 

Thank You.

0 Kudos
Message 3 of 6
(4,357 Views)
Solution
Accepted by topic author eliel

The IMAQ Images transfreed by references, not by values. After thresholding you have no original image.

 

Use design pattern like this:

 

Threshold.png

See attached VI too.

 

Andrey.

 

Message 4 of 6
(4,352 Views)

Hello..

 

Thank You very much, this is the best solution...

 

 

But...i want know how can i put a slide for change the range of the threshold?

 

and how can i do that ..automaticaly.....whan i change the value of the range automatically change in the image.?

 

 

I'll give Kudos for you and accept your answer as solution..ok...THANKS..

 

0 Kudos
Message 5 of 6
(4,344 Views)

Hi

Place a slide to control either the min or max value of your threshold range and use the slider value change event in your event structure: like this

 

Hope this helps

Regards

NTA_LabView_certified_Developper.jpg
0 Kudos
Message 6 of 6
(3,686 Views)