Added parameters to constructor of blackborder processor

Added blur line removal
Moved blackborder classes to hyperion namespace
This commit is contained in:
T. van der Zwan
2013-08-23 05:08:44 +00:00
parent c43b99359a
commit 046c68574e
7 changed files with 111 additions and 80 deletions

View File

@@ -5,8 +5,11 @@
// Utils includes
#include <utils/RgbImage.h>
// Local-Hyperion includes
#include "hyperion/BlackBorderProcessor.h"
using namespace hyperion;
RgbColor randomColor()
{
const uint8_t randomRedValue = uint8_t(rand() % (std::numeric_limits<uint8_t>::max() + 1));
@@ -40,8 +43,9 @@ int main()
{
unsigned unknownCnt = 600;
unsigned borderCnt = 50;
unsigned blurCnt = 0;
BlackBorderProcessor processor;
BlackBorderProcessor processor(unknownCnt, borderCnt, blurCnt);
// Start with 'no border' detection
RgbImage noBorderImage = createImage(64, 64, 0, 0);