08-11-2015 04:02 AM
hi i have a vi which makes use of vision acquisition and which undergoes several image processing functions like imaq extract single color plane, imaq gray morphology, auto b threshold, imaq equalize. i wanted to achieve something like a black and white image with the subject as white and the background as black. i was somehow able to get my expected output but i want it to be clearer. it is easier to achieve if the background is plain white. but i also want to get the right result even if the background is complex.
hope you can help me. thanks
08-11-2015
07:32 AM
- last edited on
05-15-2025
08:45 AM
by
Content Cleaner
Having looked at your images you should take a look at skin tone extraction. There are some thresholds in the YCbCr colour space that will allow you to extract just skin tones from an image. This should make the algorithm sligtly more robust have a look at https://forums.ni.com/t5/Example-Code/AVAST-Unleash-Your-Inner-Pirate-using-LabVIEW/ta-p/3515772 This is a fun application but shows the thresholds and transformation for turning your RGB image into YCbCr Mike
08-11-2015
06:44 PM
- last edited on
05-15-2025
08:45 AM
by
Content Cleaner
Just as a recommendation you should use the error lines to control de data flow. I will recommend you not to do all the processing in the same loop that the acquisition. For that you could use the producer/consumer architecture: