add logging engine

add options to control harris algorithum
This commit is contained in:
2020-10-27 20:59:19 +01:00
parent 6defcad11b
commit 38680f029c
7 changed files with 172 additions and 54 deletions

View File

@ -3,12 +3,13 @@
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/bgsegm.hpp>
#include "log.h"
bool createMask(const cv::Mat& in, cv::Mat& mask, const cv::Mat& bg)
{
if(in.size != bg.size || in.type() != bg.type())
{
std::cerr<<"input image and backgournd image size and type needs to be the same\n";
Log(Log::ERROR)<<"input image and backgournd image size and type needs to be the same";
return false;
}