RSS/Atom feed Twitter
Site is read-only, email is disabled

Counting colored pixels in an indexed picture?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2015-08-09 10:57:32 UTC (over 8 years ago)
postings
3

Counting colored pixels in an indexed picture?

Hi,

I have an indexed picture with only 4 coloros in it. How can I count the number of pixels of each color.

Played a bit with the Histogram window, but didn't find a way.

Would be happy for some help. Thank you!

2015-08-10 11:25:10 UTC (over 8 years ago)
postings
121

Counting colored pixels in an indexed picture?

Hi,

I have an indexed picture with only 4 coloros in it. How can I count the number of pixels of each color.

Played a bit with the Histogram window, but didn't find a way.

Would be happy for some help. Thank you!

Use the select by colour tool (with the mode set to "Replace the current selection" and then look at the histogram window.

If you had an image with many more colours, or you wanted to do this for a large number of images, a simple script would be the answer.

2015-08-11 16:36:20 UTC (over 8 years ago)
postings
3

Counting colored pixels in an indexed picture?

Use the select by colour tool (with the mode set to "Replace the current selection" and then look at the histogram window.

If you had an image with many more colours, or you wanted to do this for a large number of images, a simple script would be the answer.

That doesn't work.
I attached a screenshot to see how that looks like

2015-08-11 16:55:29 UTC (over 8 years ago)
postings
121

Counting colored pixels in an indexed picture?

That doesn't work.
I attached a screenshot to see how that looks like

It works for me using the "Select by Color" tool - from your screen-shot you are using the "Color Picker Tool" - try "Select by Color"

2015-08-11 18:49:47 UTC (over 8 years ago)
postings
3

Counting colored pixels in an indexed picture?

It works for me using the "Select by Color" tool - from your screen-shot you are using the "Color Picker Tool" - try "Select by Color"

You are right, my mistake.

It's working. Exactly what I neede. Thank you very much!

2015-08-11 19:27:06 UTC (over 8 years ago)
postings
121

Counting colored pixels in an indexed picture?

You are right, my mistake.

It's working. Exactly what I neede. Thank you very much!

Pleased to help and to hear that it does what you need