first naive method implemented

This commit is contained in:
Phuntsok Drak-pa
2019-03-20 20:14:55 +01:00
parent e31b761bcc
commit 32d6d42585
6 changed files with 41 additions and 24 deletions

View File

@@ -3,12 +3,15 @@
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <spdlog/spdlog.h>
#include <string>
#include <tuple>
#include <spdlog/spdlog.h>
#include <random>
std::tuple<cv::Mat, cv::Mat> init_image(std::string const &t_input_file);
std::tuple<cv::Mat, cv::Mat> init_image(std::string const &);
double euclidian_distance(cv::Mat const &t_img1, cv::Mat const &t_img2);
double euclidian_distance(cv::Mat const &, cv::Mat const &);
cv::Scalar random_color(std::mt19937 &);
#endif /* GENETIC_IMAGE_INCLUDE_GENIMG_COMMON_HH_ */

View File

@@ -6,7 +6,7 @@
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);
void draw_shape(cv::Mat &, cv::Point const &, int const, cv::Scalar const &,
Shapes const &);
#endif /* GENETIC_IMAGE_INCLUDE_GENIMG_DRAWING_HH_ */

View File

@@ -5,7 +5,7 @@
#include <string>
#include <tuple>
std::tuple<std::filesystem::path, std::filesystem::path, bool, int>
std::tuple<std::filesystem::path, std::filesystem::path, bool, int, int>
parse_args(int, char **);
#endif /* GENETIC_IMAGE_INCLUDE_GENIMG_PARSEARGS_HH_ */