~ubuntu-branches/ubuntu/raring/digikam/raring

« back to all changes in this revision

Viewing changes to core/libs/dimg/filters/levels/imagehistogram.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2004-07-21
7
7
 * Description : image histogram manipulation methods.
8
8
 *
9
 
 * Copyright (C) 2004-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
10
 *
11
11
 * This program is free software; you can redistribute it
12
12
 * and/or modify it under the terms of the GNU General
47
47
 
48
48
public:
49
49
 
50
 
    ImageHistogram(const uchar* i_data, uint i_w, uint i_h, bool i_sixteenBits, QObject* parent = 0);
51
 
    explicit ImageHistogram(const DImg& image, QObject* parent = 0);
 
50
    explicit ImageHistogram(const DImg& img, QObject* const parent = 0);
52
51
    ~ImageHistogram();
53
52
 
54
53
    /** Started computation: synchronous or threaded */
57
56
 
58
57
    /** Stop threaded computation. */
59
58
    void stopCalculation();
60
 
    bool isCalculating();
 
59
    bool isCalculating() const;
61
60
 
62
61
    /** Methods to access the histogram data.*/
63
 
    bool   isSixteenBit();
64
 
    bool   isValid();
65
 
    double getCount(int channel, int start, int end);
66
 
    double getMean(int channel, int start, int end);
67
 
    double getPixels();
68
 
    double getStdDev(int channel, int start, int end);
69
 
    double getValue(int channel, int bin);
70
 
    double getMaximum(int channel, int start, int end);
71
 
 
72
 
    int    getHistogramSegments();
73
 
    int    getMaxSegmentIndex();
74
 
    int    getMedian(int channel, int start, int end);
 
62
    bool   isSixteenBit() const;
 
63
    bool   isValid()      const;
 
64
 
 
65
    double getCount(int channel, int start, int end)   const;
 
66
    double getMean(int channel, int start, int end)    const;
 
67
    double getPixels()                                 const;
 
68
    double getStdDev(int channel, int start, int end)  const;
 
69
    double getValue(int channel, int bin)              const;
 
70
    double getMaximum(int channel, int start, int end) const;
 
71
 
 
72
    int    getHistogramSegments()                      const;
 
73
    int    getMaxSegmentIndex()                        const;
 
74
    int    getMedian(int channel, int start, int end)  const;
75
75
 
76
76
Q_SIGNALS:
77
77
 
87
87
 
88
88
private:
89
89
 
90
 
    void setup(const uchar* i_data, uint i_w, uint i_h, bool i_sixteenBits);
91
 
    void postProgress(bool starting, bool success);
92
 
 
93
 
private:
94
 
 
95
 
    class ImageHistogramPriv;
96
 
    ImageHistogramPriv* const d;
 
90
    class Private;
 
91
    Private* const d;
97
92
};
98
93
 
99
94
}  // namespace Digikam