Michael Natterer
b5530e9e3d
Use the new GeglAccessMode enum instead of the old values
2014-07-02 02:00:35 +02:00
Daniel Sabo
34c50b0fea
app, plug-ins: Don't modify iter->length
...
The new by-row iteration doesn't re-write the length
value for each row. In general it is not safe to modify
the iterator data because the internal logic depends
on the public data, but this specific case is new.
2013-09-12 17:43:54 -07:00
Michael Natterer
571350270b
app: return 0.0..1.0 from gimp_histogram_get_mean(), median(), std_dev()
...
Display the float values in the histogram dockable and add a compat
hack to the gimp_histogram() PDB wrapper.
2013-06-12 02:01:24 +02:00
Michael Natterer
6c97908a9e
app: add "gboolean gamma_corrected" to gimp_histogram_new()
...
so we can make histograms of the gamma-corrected image data. Pass
TRUE all over the place so the histogram works perceptually. This
needs more thinking...
2013-06-12 01:02:25 +02:00
Michael Natterer
0f0590426d
app: must CLAMP() all valus to 0..1 for calculating histogram bins
...
The histogram does only 0..1, there are no bins outside that range.
2013-06-11 23:11:37 +02:00
Michael Natterer
8d1cbd95d2
app: rename gimp_histogram_get_channel() to get_component()
...
Because that's what it is. It also takes a "gint component"
(0..4) and not a "GimpHistogramChannel channel".
2013-06-11 21:32:08 +02:00
Michael Natterer
a7f42de4c0
app: turn GimpHistorgram into a GimpObject, no other changes
2013-06-11 21:23:32 +02:00
Michael Natterer
48d312ed94
app: create > 8-bit histograms with 1024 bins
...
Seems to calculate and draw correctly, just the view's range is
broken now, will fix.
2013-06-11 08:49:28 +02:00
Michael Natterer
96d569a50e
app: make GimpHistogram use floats, and make the number of bins flexible
...
It's still always 256 currently.
2013-06-11 02:24:53 +02:00
Massimo Valentini
0909a30b06
app: histogram typos
...
correctly offset the mask,
don't crash computing the histogram of a GRAY image selection
and don't use an integer division
2013-04-21 20:15:34 +02:00
Michael Natterer
94da46c373
app: add precision argument to gimp_image_get_format()
...
and use it instead of gimp_babl_format() in some places where indexed
formats can occur. Also fix some places using gimp_babl_format() to
special case indexed formats correctly.
2012-05-07 21:46:47 +02:00
Simon Budig
1f5c631970
no comma operator there...
2012-05-02 17:51:21 +02:00
Michael Natterer
f624d7c16a
app: calculate the histogram in 8 bit rather than creating nonsense
2012-05-02 17:51:17 +02:00
Michael Natterer
5a4cac2abd
app: add XXX comment about assuming u8 to GimpHistogram
2012-05-02 17:51:09 +02:00
Michael Natterer
aee6a9eb01
app: remove the legacy histogram calculation code
2012-05-02 17:51:04 +02:00
Michael Natterer
28f655ed27
app: implement the GEGL histogram with an iterator loop for now
...
its body can later be reused in the working histogram sink op.
2012-05-02 17:51:04 +02:00
Michael Natterer
df5ab0f551
app: add gimp_histogram_clear_values() and use it
...
instead of abusing gimp_histogram_calculate() with a NULL region for
that purpose; calculate() is about to go away.
2012-05-02 17:51:04 +02:00
Michael Natterer
8d5471502e
app: move GimpHistogram from base/ to core/
2012-05-02 17:46:13 +02:00