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

Can Gimp calculate area of a color?

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.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Can Gimp calculate area of a color? Steven Howe 25 Mar 21:53
  Can Gimp calculate area of a color? GSR - FR 25 Mar 22:54
  Can Gimp calculate area of a color? Chris Mohler 28 Mar 02:24
Steven Howe
2009-03-25 21:53:01 UTC (almost 16 years ago)

Can Gimp calculate area of a color?

Howdy,
I'm making a mosaic. I've used gimp to strip out extraneous background artifacts posterize the picture down to a sixteen colors. separated the colors onto different layers.

Now I'd like to know either by area (cm, or inch) or percentage of the picture each of the colors (so I can figure out how much tile I'll need).

I don't see an obvious function such a calculation tool for this. Is there one and if so, can someone point me to it?

Thanks,

Steven

GSR - FR
2009-03-25 22:54:55 UTC (almost 16 years ago)

Can Gimp calculate area of a color?

Hi,
howe.steven@gmail.com (2009-03-25 at 1353.01 -0700):

Howdy,
I'm making a mosaic. I've used gimp to strip out extraneous background artifacts posterize the picture down to a sixteen colors. separated the colors onto different layers.

Now I'd like to know either by area (cm, or inch) or percentage of the picture each of the colors (so I can figure out how much tile I'll need).

I don't see an obvious function such a calculation tool for this. Is there one and if so, can someone point me to it?

Histogram can be used to count pixels. So make sure the alpha of each layer is sharp, select the alpha channel in histogram drop down and select the right most bar(s). If you have sharp edges, it should be just a spike on the left for all transp pixels and another in the right for opaque ones (play with log vs linear setting if needed), if you have partially transp pixels, they will appear as spikes in the middle of the graph.

GSR

Chris Mohler
2009-03-28 02:24:36 UTC (almost 16 years ago)

Can Gimp calculate area of a color?

On Wed, Mar 25, 2009 at 3:53 PM, Steven Howe wrote:

Howdy,
I'm making a mosaic. I've used gimp to strip out extraneous background artifacts posterize the picture down to a sixteen colors. separated the colors onto different layers.

Now I'd like to know either by area (cm, or inch) or percentage of the picture each of the colors (so I can figure out how much tile I'll need).

I don't see an obvious function such a calculation tool for this. Is there one and if so, can someone point me to it?

Hi Steven,

I was messing around with python yesterday and wrote a small plug-in that you might find useful:
http://registry.gimp.org/node/15080

I've only tested it on flattened images and a handful of colors, but it seems to be fairly accurate when it picks up the color (I'm still researching why sometimes the colors don't match).

Let me know how it works out...

Chris