imagepro  2019 march
Biblioteca imagepro
edgedetectorsobel.h
Ir a la documentación de este archivo.
1 
62 #ifndef EDGEDETECTORSOBEL_H
63 #define EDGEDETECTORSOBEL_H
64 
65 #include "opencv2/opencv.hpp"
66 #include "opencv2/highgui/highgui.hpp"
67 #include "imagepro.h"
69 
70 using namespace cv;
71 
73 {
74 public:
77 
79 
82  QPixmap *pix_original;
83  QPixmap *pix_final;
84 
86  int dX;
87  int dY;
88  double delta;
89  double scale;
91 
92  Mat a,b;
93  QImage image;
94  QPixmap pout;
95 
97 
109  void setInputData(Mat *image_original_, Mat *image_final_, int kernel_size_, int dX_, int dY_, double delta_, double scale_, int border_type_);
118  void setInputData(Mat *image_original_, Mat *image_final_, int kernel_size_, int dX_, int dY_);
124  void setInputData(Mat *image_original_, Mat *image_final_);
129  void setInputData(Mat *image_original_);
130 
142  void setInputData(QPixmap *pix_original_, QPixmap *pix_final_, int kernel_size_, int dX_, int dY_, double delta_, double scale_, int border_type_);
151  void setInputData(QPixmap *pix_original_, QPixmap *pix_final_, int kernel_size_, int dX_, int dY_);
157  void setInputData(QPixmap *pix_original_, QPixmap *pix_final_);
162  void setInputData(QPixmap *pix_original_);
163 
168  void calculate_Sobel(Mat *image_original_);
173  void calculate_Sobel();
174 
175 
180  QPixmap getOutputImage();
181 };
182 
183 #endif // EDGEDETECTORSOBEL_H
184 
185 
186 //https://docs.opencv.org/2.4/modules/imgproc/doc/filtering.html?highlight=scharr#scharr
187 //src – input image.
188 //dst – output image of the same size and the same number of channels as src .
189 //ddepth –
190 //
191 //output image depth; the following combinations of src.depth() and ddepth are supported:
192 // src.depth() = CV_8U, ddepth = -1/CV_16S/CV_32F/CV_64F
193 // src.depth() = CV_16U/CV_16S, ddepth = -1/CV_32F/CV_64F
194 // src.depth() = CV_32F, ddepth = -1/CV_32F/CV_64F
195 // src.depth() = CV_64F, ddepth = -1/CV_64F
196 //
197 //when ddepth=-1, the destination image will have the same depth as the source; in the case of 8-bit input images it will result in truncated derivatives.
198 //xorder – order of the derivative x.
199 //yorder – order of the derivative y.
200 //ksize – size of the extended Sobel kernel; it must be 1, 3, 5, or 7.
201 //scale – optional scale factor for the computed derivative values; by default, no scaling is applied (see getDerivKernels() for details).
202 //delta – optional delta value that is added to the results prior to storing them in dst.
203 //borderType – pixel extrapolation method (see borderInterpolate() for details).
204 
int dY
Definition: edgedetectorsobel.h:87
QImage image
Definition: edgedetectorsobel.h:93
int kernel_size
Definition: edgedetectorsobel.h:85
Mat b
Definition: edgedetectorsobel.h:92
int border_type
Definition: edgedetectorsobel.h:90
int dX
Definition: edgedetectorsobel.h:86
Mat * image_final
Definition: edgedetectorsobel.h:81
Mat * image_original
Definition: edgedetectorsobel.h:80
QPixmap pout
Definition: edgedetectorsobel.h:94
Clase auxiliar para transformar imágenes de un formato a otro (Mat, QPixmap, QImage)
ImagePro imgpro
Definition: edgedetectorsobel.h:78
QPixmap * pix_original
Definition: edgedetectorsobel.h:82
EdgeDetectorSobel_widget * widget
Definition: edgedetectorsobel.h:96
QPixmap * pix_final
Definition: edgedetectorsobel.h:83
double delta
Definition: edgedetectorsobel.h:88
double scale
Definition: edgedetectorsobel.h:89
Definition: imagepro.h:117
Definition: edgedetectorsobel.h:72
Definition: edgedetectorsobel_widget.h:22