imagepro  2019 march
Biblioteca imagepro
histogram.h
Ir a la documentación de este archivo.
1 
24 #ifndef HISTOGRAM_H
25 #define HISTOGRAM_H
26 
27 #include "opencv2/opencv.hpp"
28 #include "opencv2/highgui/highgui.hpp"
29 #include "imagepro.h"
30 
31 using namespace cv;
32 
33 class Histogram
34 {
35 public:
36  Histogram();
37  ~Histogram();
38 
40 
42  QPixmap *pix_original;
43 
44  Mat a;
45  Mat b_hist, g_hist, r_hist;
46  QVector <double> histograma_1;
47  QVector <double> histograma_2;
48  QVector <double> histograma_3;
49 
50  QVector <double> minHist, maxHist, maxColorHist;
51 
52  void calculate_histogram(QPixmap *pix_original_, bool showHist);
53  void calculate_histogram(Mat *image_original_, bool showHist);
54 };
55 
56 #endif // HISTOGRAM_H
57 
58 /*
59 Documentation: http://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
60 */
QVector< double > histograma_3
Definition: histogram.h:48
QVector< double > histograma_1
Definition: histogram.h:46
ImagePro imgpro
Definition: histogram.h:39
Mat * image_original
Definition: histogram.h:41
Mat a
Definition: histogram.h:44
Clase auxiliar para transformar imágenes de un formato a otro (Mat, QPixmap, QImage)
QVector< double > histograma_2
Definition: histogram.h:47
QVector< double > minHist
Definition: histogram.h:50
Mat r_hist
Definition: histogram.h:45
Definition: histogram.h:33
Definition: imagepro.h:117
QPixmap * pix_original
Definition: histogram.h:42