Jump to content

How to get number of white pixels in an image


Recommended Posts

Posted

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!

Posted
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.!

  • 2 weeks later...

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.