[Gambas-user] Image class and histogram

Matti math.eber at ...221...
Sun Mar 13 16:55:26 CET 2011


Great!
Works fine. For the channels R, G, B I get exactly the same histograms as GIMP
shows.
For the combined grayscale histogram I get a different curve, but this depends
on how the brightness value is computed. Have to read more.


Am 13.03.2011 03:49, schrieb Benoît Minisini:

> 
> I implemented the Image.Histogram() method in the gb.image.effect component 
> (revision #3647). 
> 
> It works like that:
> 
> Dim hImage as Image
> Dim hHist As ImageHistogram
> 
> hHist = hImage.Histogram()
> Print hHist[<Channel>, <Value>]
> 
> <Channel> is Image.Red, Image.Blue, Image.Green or Image.Alpha.
> <Value> must be between 0 and 255.
> 
> Can you test it?
> 




More information about the User mailing list