summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/pt-api.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-09 05:33:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-09 05:35:08 +0200
commit793cea587159a0ba01fec6af28e899697ef4da79 (patch)
treeb4ec4477862ed74dc2c180d2b002915f8df040e8 /tracker-pt/pt-api.cpp
parent841e163ae4b86317cca29748cf0f2730418e4fa5 (diff)
cleanup only
Diffstat (limited to 'tracker-pt/pt-api.cpp')
-rw-r--r--tracker-pt/pt-api.cpp41
1 files changed, 9 insertions, 32 deletions
diff --git a/tracker-pt/pt-api.cpp b/tracker-pt/pt-api.cpp
index 596590dc..d137a60a 100644
--- a/tracker-pt/pt-api.cpp
+++ b/tracker-pt/pt-api.cpp
@@ -3,9 +3,7 @@
using namespace types;
-pt_camera_info::pt_camera_info()
-{
-}
+pt_camera_info::pt_camera_info() = default;
double pt_camera_info::get_focal_length(f fov, int res_x, int res_y)
{
@@ -21,29 +19,12 @@ double pt_camera_info::get_focal_length(f fov, int res_x, int res_y)
//static bool once = false; if (!once) { once = true; qDebug() << "f" << ret << "fov" << (fov * 180/M_PI); }
}
-pt_camera::pt_camera()
-{
-}
-
-pt_camera::~pt_camera()
-{
-}
-
-pt_runtime_traits::pt_runtime_traits()
-{
-}
-
-pt_runtime_traits::~pt_runtime_traits()
-{
-}
-
-pt_point_extractor::pt_point_extractor()
-{
-}
-
-pt_point_extractor::~pt_point_extractor()
-{
-}
+pt_camera::pt_camera() = default;
+pt_camera::~pt_camera() = default;
+pt_runtime_traits::pt_runtime_traits() = default;
+pt_runtime_traits::~pt_runtime_traits() = default;
+pt_point_extractor::pt_point_extractor() = default;
+pt_point_extractor::~pt_point_extractor() = default;
double pt_point_extractor::threshold_radius_value(int w, int h, int threshold)
{
@@ -68,10 +49,6 @@ std::tuple<double, double> pt_pixel_pos_mixin::to_screen_pos(double px, double p
return std::make_tuple((px - w/2.)/w, -(py - h/2.)/w);
}
-pt_frame::pt_frame()
-{
-}
+pt_frame::pt_frame() = default;
-pt_frame::~pt_frame()
-{
-}
+pt_frame::~pt_frame() = default;