ASalcedo Posted February 6, 2018 Report Posted February 6, 2018 Hi to all. I would like to get the number of white pixels in an image (so get the white area). I see histogram.vi but I do not know how to do that. Any help? Thanks a lot! Quote
ensegre Posted February 6, 2018 Report Posted February 6, 2018 (edited) How about or ? Edited February 6, 2018 by ensegre Quote
ASalcedo Posted February 6, 2018 Author Report Posted February 6, 2018 14 minutes ago, ensegre said: How about or ? Thanks a lot. I am gonna trying Quote
ensegre Posted February 6, 2018 Report Posted February 6, 2018 PS: you may have to cast number arrays to U32 to avoid wraparound of the sum, if you have more than 32767 pixels, sorry I didn't pay attention to that. Quote
ASalcedo Posted February 6, 2018 Author Report Posted February 6, 2018 19 minutes ago, ensegre said: PS: you may have to cast number arrays to U32 to avoid wraparound of the sum, if you have more than 32767 pixels, sorry I didn't pay attention to that. Sorry, how can I do that? I do not understand really well. Thanks a lot again.! Quote
ASalcedo Posted February 20, 2018 Author Report Posted February 20, 2018 @ensegre How can I do the same but just counting white pixels in a specific ROI? With a mask or something like this? Thanks a lot Quote
ensegre Posted February 25, 2018 Report Posted February 25, 2018 For instance. There is even an Example in the Example Finder for that, Histogram.vi Quote
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.