add logging engine
add options to control harris algorithum
This commit is contained in:
parent
6defcad11b
commit
38680f029c
7 changed files with 172 additions and 54 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue