add logging engine
add options to control harris algorithum
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user