-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedge_detection_USM.cpp
33 lines (22 loc) · 1.03 KB
/
edge_detection_USM.cpp
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
#define _USE_MATH_DEFINES
#include <cmath>
#include "edge_detection_USM.h"
#include "imageviewer.h"
EdgeDetectionUSM::EdgeDetectionUSM() : FunctionBox("Kantendetektion mittels Canny Edge Algorithmus"){
layout->addRow("Gauss-Radius: ",gaussRadiusField.get());
layout->addRow("Sigma: ",sigmaField.get());
cannyEdgeLayout->addRow("Hysteresis Low: ",hysteresisLowField.get());
cannyEdgeLayout->addRow("Hysteresis High: ",hysteresisHighField.get());
cannyEdgeLayout->addRow(cannyEdgeButton.get());
QObject::connect(cannyEdgeButton.get(), QPushButton::clicked, this, EdgeDetectionUSM::canny_edge );
secondaryLayout->addLayout(cannyEdgeLayout.get());
usmLayout->addRow("Alpha: ",alphaField.get());
usmLayout->addRow(usmFilterButton.get());
QObject::connect(usmFilterButton.get(), QPushButton::clicked, this, EdgeDetectionUSM::USM_filter );
secondaryLayout->addLayout(usmLayout.get());
layout->addRow(secondaryLayout.get());
}
void EdgeDetectionUSM::canny_edge(){
}
void EdgeDetectionUSM::USM_filter(){
}