added helper functions and fixed inverted width and height

This commit is contained in:
Phuntsok Drak-pa
2019-03-20 11:40:17 +01:00
parent 8b7b82f852
commit 0295de096d
4 changed files with 30 additions and 7 deletions

View File

@@ -4,7 +4,9 @@
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
void draw_square(cv::Mat &t_img, cv::Point const &t_top_left, int const size,
cv::Scalar const &t_color);
enum class Shapes { Square, Circle };
void draw_shape(cv::Mat &t_img, cv::Point const &t_top_left, int const t_size,
cv::Scalar const &t_color, Shapes const &t_shape);
#endif /* GENETIC_IMAGE_INCLUDE_GENIMG_DRAWING_HH_ */