Gepponline Posted January 29, 2019 Report Share Posted January 29, 2019 Hi, I would like to threshold a binaty image showing to the user the original Image overlayed by the thershold result like the Vision Assistand does. I've tried with the Keep/Replace Value input in the threshold VI but it does the exact opposite of what I need (it replace or not the thresholded image leaving BLACK the rest) I need to replace the thresholded values with a user color and leave the rest of image as it is. Any suggestion on How to do it? thank you so much. Quote Link to comment
Antoine Chalons Posted January 29, 2019 Report Share Posted January 29, 2019 I think you have to display the result of the threshold as an overlay on the original image, I guess this is what they do. Have you checked at the examples in LabVIEW, I think there is one that does that. Help > Find examples... > then search for threshold Quote Link to comment
hatef Posted January 29, 2019 Report Share Posted January 29, 2019 you have to do this method use thershould vi to time 1 use for it for rest of range with replace value that you want (0 up to 255) 2 use it with range that you want and make of for replace value now you need just to add this two picture to each other Quote Link to comment
Gepponline Posted January 29, 2019 Author Report Share Posted January 29, 2019 It's really not clear to me what you said.... At the moment I've used Image To Image vi using the thresholded image as Small Image and as mask as well. It works but it doesn't allow me to choose the color of the overlay. It's always black. Quote Link to comment
caleyjag Posted February 4, 2019 Report Share Posted February 4, 2019 Can you share your code? This seems like a tractable problem... Quote Link to comment
Gepponline Posted February 7, 2019 Author Report Share Posted February 7, 2019 At the moment I solved using IMAQFillImage VI. That VI allow, using a binary image as mask to determine which pixels has to be overwritten, to do what I need. Beeing an 8bit grayscale image it allows me only to choose 255 gradients from black to white, but converting the image in a coloured one, it allow to use every color I want. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.