7
7
* Description : image histogram manipulation methods.
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>
11
11
* This program is free software; you can redistribute it
12
12
* and/or modify it under the terms of the GNU General
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);
54
53
/** Started computation: synchronous or threaded */
58
57
/** Stop threaded computation. */
59
58
void stopCalculation();
59
bool isCalculating() const;
62
61
/** Methods to access the histogram data.*/
65
double getCount(int channel, int start, int end);
66
double getMean(int channel, int start, int end);
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);
72
int getHistogramSegments();
73
int getMaxSegmentIndex();
74
int getMedian(int channel, int start, int end);
62
bool isSixteenBit() const;
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;
72
int getHistogramSegments() const;
73
int getMaxSegmentIndex() const;
74
int getMedian(int channel, int start, int end) const;
90
void setup(const uchar* i_data, uint i_w, uint i_h, bool i_sixteenBits);
91
void postProgress(bool starting, bool success);
95
class ImageHistogramPriv;
96
ImageHistogramPriv* const d;
99
94
} // namespace Digikam