2013-08-13 11:10:45 +02:00
|
|
|
|
|
|
|
// Hyperion includes
|
|
|
|
#include <hyperion/ImageProcessorFactory.h>
|
|
|
|
#include <hyperion/ImageProcessor.h>
|
|
|
|
|
|
|
|
ImageProcessorFactory& ImageProcessorFactory::getInstance()
|
|
|
|
{
|
|
|
|
static ImageProcessorFactory instance;
|
|
|
|
// Return the singleton instance
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
2013-10-20 22:27:05 +02:00
|
|
|
void ImageProcessorFactory::init(const LedString& ledString, bool enableBlackBorderDetector)
|
2013-08-13 11:10:45 +02:00
|
|
|
{
|
|
|
|
_ledString = ledString;
|
2013-10-20 22:27:05 +02:00
|
|
|
_enableBlackBorderDetector = enableBlackBorderDetector;
|
2013-08-13 11:10:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ImageProcessor* ImageProcessorFactory::newImageProcessor() const
|
|
|
|
{
|
2013-10-20 22:27:05 +02:00
|
|
|
return new ImageProcessor(_ledString, _enableBlackBorderDetector);
|
2013-08-13 11:10:45 +02:00
|
|
|
}
|