| 20 | #include "IPHistogramWidget.h" |
| 21 | |
| 22 | IPHistogramWidget::IPHistogramWidget(QWidget *parent) : |
| 23 | QWidget(parent) |
| 24 | { |
| 25 | _bins = 0; |
| 26 | _planes = 0; |
| 27 | _logarithmic = false; |
| 28 | _hightlightPosition = -1; |
| 29 | |
| 30 | _histogram.reset(NULL); |
| 31 | _histogramR.reset(NULL); |
| 32 | _histogramG.reset(NULL); |
| 33 | _histogramB.reset(NULL); |
| 34 | |
| 35 | _type = IPL_UNDEFINED; |
| 36 | |
| 37 | setCursor(Qt::BlankCursor); |
| 38 | setMouseTracking(true); |
| 39 | } |
| 40 | |
| 41 | void IPHistogramWidget::updateHistogram(IPLImage *image) |
| 42 | { |