1. 19 Nov, 2017 1 commit
  2. 08 Nov, 2017 1 commit
  3. 07 Nov, 2017 1 commit
    • Ell's avatar
      Bug 788394 - Crash (segmentation fault) when calculating a histogram ... · b2b6552f
      Ell authored
      ... upon NaN values
      
      Make the histogram bin calculation NaN-safe, by mapping NaNs to 0.
      Ideally, NaNs should probably not be counted at all, but since we
      already count negative values as 0, and > 1 values as 1, we might
      as well not pessimize performance over it, at least until we add
      support for unbounded histograms.
      
      At the same time, improve rounding in the bin calculation, so that
      the result is more accurate.
      b2b6552f
  4. 26 Dec, 2016 1 commit
    • Michael Natterer's avatar
      app: allow to toggle the histogram dialog between gamma and linear · fc9da4c9
      Michael Natterer authored
      Change GimpHistogram to take a "gboolean linear" parameter and always
      honor that parameter, so both kinds of histograms can now be created
      for all drawables.
      
      Add a horrible "Linear" toggle to the histogram dockable which always
      defaults to the active layer's actual pixel format, but can be
      switched at any time. This UI is ugly and needs to change.
      
      On the PDB, default to gamma-corrected if the plug-in is unaware of
      higher precision, and to the drawable's native pixel format otherwise.
      
      Other places using histograms (e.g. levels, curves) are unchanged.
      fc9da4c9
  5. 25 Nov, 2016 1 commit
  6. 18 Apr, 2016 1 commit
  7. 02 Jul, 2014 1 commit
  8. 13 Sep, 2013 1 commit
    • Daniel Sabo's avatar
      app, plug-ins: Don't modify iter->length · 34c50b0f
      Daniel Sabo authored
      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.
      34c50b0f
  9. 12 Jun, 2013 1 commit
  10. 11 Jun, 2013 6 commits
  11. 21 Apr, 2013 1 commit
    • Massimo Valentini's avatar
      app: histogram typos · 0909a30b
      Massimo Valentini authored
      correctly offset the mask,
      don't crash computing the histogram of a GRAY image selection
      and don't use an integer division
      0909a30b
  12. 07 May, 2012 1 commit
  13. 02 May, 2012 7 commits
  14. 13 Oct, 2011 2 commits
  15. 12 Oct, 2011 3 commits
  16. 28 Sep, 2011 1 commit
  17. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  18. 22 Jul, 2008 1 commit
    • Sven Neumann's avatar
      added new method gimp_histogram_duplicate(). · 43680108
      Sven Neumann authored
      2008-07-22  Sven Neumann  <sven@gimp.org>
      
      	* app/base/gimphistogram.[ch]: added new method
      	gimp_histogram_duplicate().
      
      	* app/widgets/gimphistogrameditor.c
      	(gimp_histogram_editor_frozen_update): instead of recalculating
      	the histogram, use a duplicate for the background histogram.
      
      
      svn path=/trunk/; revision=26270
      43680108
  19. 04 Feb, 2008 1 commit
    • Michael Natterer's avatar
      add refcounting and replace free() API by ref() and unref(). · 50ad5cfd
      Michael Natterer authored
      2008-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/gimphistogram.[ch]: add refcounting and replace free()
      	API by ref() and unref().
      
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-levels.c
      	* app/widgets/gimphistogrameditor.c
      	* tools/pdbgen/pdb/color.pdb: replace calls to
      	gimp_histogram_free() by gimp_histogram_unref().
      
      	* app/pdb/color_cmds.c: regenerated.
      
      	* app/widgets/gimphistogramview.c: reference the histograms so we
      	don't need the widget's users to keep them around while the widget
      	exists.
      
      	* app/tools/gimpcurvestool.[ch]: remove the histogram from the
      	tool struct and just create one locally to set it on the histogram
      	view widget.
      
      	Unrelated:
      
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpthresholdtool.[ch]: renamed "hist" members to
      	"histogram" plus some cleanup.
      
      
      svn path=/trunk/; revision=24792
      50ad5cfd
  20. 19 Sep, 2007 1 commit
  21. 13 Aug, 2007 1 commit
  22. 22 May, 2007 1 commit
    • Michael Natterer's avatar
      app/actions/data-commands.c app/base/boundary.c app/base/gimphistogram.c · ada79e53
      Michael Natterer authored
      2007-05-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/base/boundary.c
      	* app/base/gimphistogram.c
      	* app/base/gimplut.c
      	* app/base/temp-buf.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpgradient.c
      	* app/core/gimpparamspecs.c
      	* app/core/gimpundo.c
      	* app/plug-in/gimpplugin-cleanup.c
      	* app/plug-in/gimppluginmanager-data.c
      	* app/plug-in/gimppluginmanager-help-domain.c
      	* app/plug-in/gimppluginmanager-locale-domain.c
      	* app/plug-in/gimppluginmanager-menu-branch.c
      	* app/plug-in/gimppluginprocframe.c
      	* app/vectors/gimpanchor.c
      	* app/widgets/gimpsessioninfo.c: use GSlice instead of g_new/g_free
      	for structs of fixed size.
      
      
      svn path=/trunk/; revision=22558
      ada79e53
  23. 09 Dec, 2006 1 commit
  24. 21 Apr, 2006 1 commit
    • Sven Neumann's avatar
      Applied a slightly modified version of a patch from Lode Leroy (bug · 6a4981c8
      Sven Neumann authored
      2006-04-21  Sven Neumann  <sven@gimp.org>
      
      	Applied a slightly modified version of a patch from Lode Leroy
      	(bug #336183):
      
      	* app/base/gimphistogram.[ch]: added new function
      	gimp_histogram_get_threshold() that returns an optimal
      	binarization threshold.
      
      	* app/tools/gimpthresholdtool.c: use the new function to
      	initialize the Threshold tool.
      6a4981c8
  25. 12 Apr, 2006 1 commit
  26. 12 Jan, 2006 1 commit
    • jaycox's avatar
      Fixed my email address in a dozen or so source files: · b8752cd2
      jaycox authored
      
      Fixed my email address in a dozen or so source files:
        modules/cdisplay_highcontrast.c
        libgimpbase/gimpparasite.c
        libgimpbase/gimpparasite.h
        libgimpmath/gimpmatrix.h
        libgimpmath/gimpmatrix.c
        app/core/gimpparasitelist.h
        app/core/gimpparasitelist.c
        app/base/gimphistogram.c
        app/base/gimphistogram.h
        app/base/gimplut.c
        app/base/gimplut.h
        app/base/pixel-processor.c
        app/base/pixel-processor.h
        app/core/gimp-parasites.c
        app/core/gimp-parasites.h
        app/core/gimpdrawable-histogram.c
        app/core/gimpdrawable-histogram.h
        app/core/gimpparasitelist.c
        app/core/gimpparasitelist.h
      b8752cd2