bugfix, config enhancement and 3 detection modes

Former-commit-id: edfc3e7ccf7b7d727e73a8563acb521045026d5b
This commit is contained in:
wisc
2016-02-07 13:26:40 +01:00
parent 6b052081f7
commit 2b703de669
11 changed files with 213 additions and 60 deletions

View File

@@ -44,11 +44,13 @@ Image<ColorRgb> createImage(unsigned width, unsigned height, unsigned topBorder,
int main()
{
unsigned unknownCnt = 600;
// unsigned unknownCnt = 600;
unsigned borderCnt = 50;
unsigned blurCnt = 0;
// unsigned blurCnt = 0;
Json::Value config;
BlackBorderProcessor processor(unknownCnt, borderCnt, blurCnt, 3);
// BlackBorderProcessor processor(unknownCnt, borderCnt, blurCnt, 3, config);
BlackBorderProcessor processor(config);
// Start with 'no border' detection
Image<ColorRgb> noBorderImage = createImage(64, 64, 0, 0);