-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedge_detection_USM.h
More file actions
38 lines (29 loc) · 1.16 KB
/
edge_detection_USM.h
File metadata and controls
38 lines (29 loc) · 1.16 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef EDGE_DETECTION_USM_H
#define EDGE_DETECTION_USM_H
#include "functionbox.h"
#include <memory>
#include <QFormLayout>
#include <QLineEdit>
#include <QPushButton>
class EdgeDetectionUSM : public FunctionBox{
public:
EdgeDetectionUSM();
private:
std::unique_ptr<QFormLayout> layout{new QFormLayout(this)};
std::unique_ptr<QLineEdit> gaussRadiusField{new QLineEdit()};
std::unique_ptr<QLineEdit> sigmaField{new QLineEdit()};
std::unique_ptr<QHBoxLayout> secondaryLayout{new QHBoxLayout()};
//for canny edge detection
std::unique_ptr<QFormLayout> cannyEdgeLayout{new QFormLayout()};
std::unique_ptr<QLineEdit> hysteresisLowField{new QLineEdit()};
std::unique_ptr<QLineEdit> hysteresisHighField{new QLineEdit()};
std::unique_ptr<QPushButton> cannyEdgeButton{new QPushButton(QString("Canny Edge Detection"))};
//for usm filtering
std::unique_ptr<QFormLayout> usmLayout{new QFormLayout()};
std::unique_ptr<QLineEdit> alphaField{new QLineEdit()};
std::unique_ptr<QPushButton> usmFilterButton{new QPushButton(QString("USM-Filter"))};
private slots:
void canny_edge();
void USM_filter();
};
#endif // EDGE_DETECTION_USM_H