some bugs fixed

This commit is contained in:
Phuntsok Drak-pa
2019-04-27 18:04:32 +02:00
parent b962d50996
commit c75e6a92ea
6 changed files with 37 additions and 40 deletions

View File

@@ -2,7 +2,6 @@
#include "shapes.hh"
#include <spdlog/spdlog.h>
#include <string>
#include <vector>

View File

@@ -3,6 +3,7 @@
#include <array>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <spdlog/spdlog.h>
class Shape
{
@@ -31,8 +32,8 @@ public:
Shape &operator=(Shape &&other) noexcept = delete;
/// \brief Generates a shape's points
void operator()(cv::Point &&t_max_pos, int const t_max_size,
int const t_min_size = 0) noexcept;
void update(cv::Point &&t_max_pos, int const t_max_size,
int const t_min_size = 0) noexcept;
[[nodiscard]] auto get_points() const noexcept
-> std::array<cv::Point, Shape::MAX_POINTS> const &