Jump to content
ASalcedo

How to get number of white pixels in an image

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.