hyperion.ng/libsrc/hyperion/BlackBorderProcessor.h
T. van der Zwan 3d02fecc7a Added 'rainbow' boot sequence
Moved color transform to utils lib
2013-08-23 16:24:10 +00:00

38 lines
625 B
C++

#pragma once
// Local Hyperion includes
#include "BlackBorderDetector.h"
namespace hyperion
{
class BlackBorderProcessor
{
public:
BlackBorderProcessor(
const unsigned unknownFrameCnt,
const unsigned borderFrameCnt,
const unsigned blurRemoveCnt);
BlackBorder getCurrentBorder() const;
bool process(const RgbImage& image);
private:
const unsigned _unknownSwitchCnt;
const unsigned _borderSwitchCnt;
unsigned _blurRemoveCnt;
BlackBorderDetector _detector;
BlackBorder _currentBorder;
BlackBorder _previousDetectedBorder;
unsigned _consistentCnt;
};
} // end namespace hyperion