mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Merge branch 'master' of https://github.com/tvdzwan/hyperion.git
Former-commit-id: e21a530324abb6af92f4b34abdfbf23313775f4a
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
#include <random>
|
||||
|
||||
// Hyperion includes
|
||||
#include <hyperion/BlackBorderDetector.h>
|
||||
#include <utils/ColorRgb.h>
|
||||
|
||||
// Blackborder includes
|
||||
#include <blackborder/BlackBorderDetector.h>
|
||||
|
||||
using namespace hyperion;
|
||||
|
||||
ColorRgb randomColor()
|
||||
@@ -41,7 +43,7 @@ int TC_NO_BORDER()
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
BlackBorderDetector detector;
|
||||
BlackBorderDetector detector(3);
|
||||
|
||||
{
|
||||
Image<ColorRgb> image = createImage(64, 64, 0, 0);
|
||||
@@ -60,7 +62,7 @@ int TC_TOP_BORDER()
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
BlackBorderDetector detector;
|
||||
BlackBorderDetector detector(3);
|
||||
|
||||
{
|
||||
Image<ColorRgb> image = createImage(64, 64, 12, 0);
|
||||
@@ -79,7 +81,7 @@ int TC_LEFT_BORDER()
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
BlackBorderDetector detector;
|
||||
BlackBorderDetector detector(3);
|
||||
|
||||
{
|
||||
Image<ColorRgb> image = createImage(64, 64, 0, 12);
|
||||
@@ -98,7 +100,7 @@ int TC_DUAL_BORDER()
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
BlackBorderDetector detector;
|
||||
BlackBorderDetector detector(3);
|
||||
|
||||
{
|
||||
Image<ColorRgb> image = createImage(64, 64, 12, 12);
|
||||
@@ -116,7 +118,7 @@ int TC_UNKNOWN_BORDER()
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
BlackBorderDetector detector;
|
||||
BlackBorderDetector detector(3);
|
||||
|
||||
{
|
||||
Image<ColorRgb> image = createImage(64, 64, 30, 30);
|
||||
|
@@ -8,8 +8,8 @@
|
||||
#include <utils/Image.h>
|
||||
#include <utils/ColorRgb.h>
|
||||
|
||||
// Local-Hyperion includes
|
||||
#include "hyperion/BlackBorderProcessor.h"
|
||||
// Blackborder includes
|
||||
#include "blackborder/BlackBorderProcessor.h"
|
||||
|
||||
using namespace hyperion;
|
||||
|
||||
@@ -48,7 +48,7 @@ int main()
|
||||
unsigned borderCnt = 50;
|
||||
unsigned blurCnt = 0;
|
||||
|
||||
BlackBorderProcessor processor(unknownCnt, borderCnt, blurCnt);
|
||||
BlackBorderProcessor processor(unknownCnt, borderCnt, blurCnt, 3);
|
||||
|
||||
// Start with 'no border' detection
|
||||
Image<ColorRgb> noBorderImage = createImage(64, 64, 0, 0);
|
||||
|
Reference in New Issue
Block a user