Fading Memories

About

Ramblings about books and other things that will soon fade from my memory.

Boudewijn Rempt

index | rss1.0

Check out my sculpture website: www.boudewijnrempt.nl.

There's more...

Creative Commons License
The original artwork is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License.

Roundabout through identi.ca

    follow me on Identi.ca

    Categories, too

    Find


    Archives

    Other things here at valdyas.org

    2004-07-06

    Histograms in Krita

    Phew! I've added the beginning of support for histograms to Krita tonight. A nice KisHistogram class to compute the stuff (done, apart from median, stddev and percentile, which I haven't got a clue about), a widget and a plugin. What I still need to do is create the bar chart pixmap and the gradient pixmap, but the rest is mostly done. Not bad for an evening's work.


    Does anyone have, by accident, some nice barchart and/or gradient code lying about? I really bar painting charts by hand...

    Oh, and this code uses Cyrille's iterators. Pretty speedy, but I am convinced I want to iterate by pixel, and have begin() and end() as in the rest of Qt. I also discovered that our color strategies have a nice function nobody had used before to return the channels they handle, and their ordering. Now we only need to add types, and package the channels in a vector, not just a chunk of memory with a pointer pointing towards them.