From 6c77ce2361d713fc13a4d21f8dec87084de45c9e Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 7 Sep 2022 13:04:17 -0400 Subject: Pass matrices as pointers so that headers no longer depend on opencv. --- signature.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'signature.hpp') diff --git a/signature.hpp b/signature.hpp index e01a739..4e8c10f 100644 --- a/signature.hpp +++ b/signature.hpp @@ -5,7 +5,6 @@ #include #include -#include struct signature_config { @@ -20,6 +19,11 @@ struct signature_config double max_cropping; }; +namespace cv +{ + class Mat; +}; + class signature_priv; class signature { @@ -49,7 +53,7 @@ public: * Then it will be passed to from_preprocessed_matrix. * The matrix doesn't have to be continuous. */ - static signature from_cvmatrix(cv::Mat m, const signature_config &cfg); + static signature from_cvmatrix(cv::Mat *m, const signature_config &cfg); /* * Input must be a single channel, floating point matrix @@ -58,7 +62,7 @@ public: * STILL *Will* be cropped if config().crop == true * STILL *Will* be blurred if config().blur_window > 1 */ - static signature from_preprocessed_matrix(cv::Mat m, const signature_config &cfg); + static signature from_preprocessed_matrix(cv::Mat *m, const signature_config &cfg); static signature_config default_cfg(); -- cgit v1.2.3