05-09-2012 09:01 AM
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.
Solved! Go to Solution.
05-09-2012 10:00 AM
1. Try to make copy of your image (with IMAQ Copy) then apply Threshold to copy.
2. Show your code here.
05-09-2012 10:46 AM
Here is the code.
Thank You.
05-09-2012 12:29 PM
The IMAQ Images transfreed by references, not by values. After thresholding you have no original image.
Use design pattern like this:
See attached VI too.
Andrey.
05-10-2012 08:34 AM
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..
06-26-2012 02:53 AM
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