[magick-users] histogram and PerlMagick

Gabe Schaffer magick at gabe.com
Thu Nov 2 16:52:46 CST 2006


On 11/2/06, Brian Jackson <brian at actionathletics.com> wrote:
> On Thursday 02 November 2006 13:17, Ron Savage wrote:
> > On Wed, 1 Nov 2006 15:42:15 -0700, Brian Jackson wrote:

> I've got a little shell script to produce the 4 different histograms
> (value, red, green, blue) and it takes about 0.6-2.5 seconds depending
> on the machine, which isn't too bad, but not having to make a shell
> call, writing and then reading 4 files....that's the goal :)

You can do it with 2 histograms:
1. create histogram file
2. load histogram file
3. separate histogram file into red/green/blue channels to get R/G/B histograms
4. convert original image to greyscale
5. create histogram file
6. load histogram file as value histogram

GNS


More information about the Magick-users mailing list