Added blackborder detection and processing to the image processor

This commit is contained in:
T. van der Zwan
2013-08-23 05:09:09 +00:00
parent 046c68574e
commit 6ee94409dc
2 changed files with 59 additions and 4 deletions

View File

@@ -4,11 +4,15 @@
// Utils includes
#include <utils/RgbImage.h>
#include <hyperion/LedString.h>
// Hyperion includes
#include <hyperion/ImageProcessorFactory.h>
#include <hyperion/LedString.h>
// Forward class declaration
namespace hyperion { class ImageToLedsMap; }
namespace hyperion {
class ImageToLedsMap;
class BlackBorderProcessor;
}
/**
* The ImageProcessor translates an RGB-image to RGB-values for the leds. The processing is
@@ -52,9 +56,15 @@ private:
ImageProcessor(const LedString &ledString);
void verifyBorder(const RgbImage& image);
private:
const LedString mLedString;
bool _enableBlackBorderRemoval;
/// The processor for black border detection
hyperion::BlackBorderProcessor* _borderProcessor;
hyperion::ImageToLedsMap* mImageToLeds;
};