Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Average colour in GIMP - one click
#3
(4 hours ago)Scallact Wrote: I consider your plugin as an essential from now on. Thanks for your work, and the explanations. And for sure, I'll use the method in some of my plugins where I used some ugly hacks to achieve a less than ideal result.

You rely on the histogram for your calculations. It would be interesting to know how GIMP's histogram calculates its means, and which color space it uses, sRGB or the color profile of the image. The API function Gimp.Drawable.histogram() documentation is not very clear about it, and  it would validate the method "scientifically".

Thanks a lot for sharing!

P.S: just a small note: I think it's generally considered good practice to put a personal prefix in front of one's plugin's name, to avoid possible naming collisions in the future.

Thank you very much, happy to help! 

Interesting question about how GIMP calculates histogram means. My guess is that it's industry standard (whatever that is, I'm not that sciency) because calculations based on the mean values correlate with Photoshop.

I didn't know about the personal prefix convention. I'll use it going forward. Thanks for the tip!
Reply


Messages In This Thread
RE: Average colour in GIMP - one click - by chuckhenrich - 1 hour ago

Forum Jump: