added helper functions and fixed inverted width and height
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user