Blame view

HsHistoWidget.h 483 Bytes
3f2992b2c   bostx   V1.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  #ifndef HSHISTOWIDGET_H
  #define HSHISTOWIDGET_H
  
  #include <QWidget>
  #include <opencv2/core/core.hpp>
  #include "VideoFrameProcessor.h"
  
  class HsHistoWidget: public QWidget
  {
    Q_OBJECT
  
   public:
    HsHistoWidget(int width = 130, int height = 130, int paletteHeight = 10, QWidget *parent = 0);
    void setHisto(const cv::Mat &hsHisto);
    
   protected:
    void paintEvent(QPaintEvent *event);
  
   private:
    int m_width;
    int m_height;
    int m_paletteHeight;
    cv::Mat m_hsHisto;
  };
  
  #endif