hyperion.ng/libsrc/hyperion/BlackBorderProcessor.h
T. van der Zwan 0ff4058ba4 Added wrapper for the blackborder detector to maintain state about detected borders.
Added simple unit test for blackborder processor.
2013-08-21 20:44:17 +00:00

31 lines
427 B
C++

#pragma once
// Local Hyperion includes
#include "BlackBorderDetector.h"
class BlackBorderProcessor
{
public:
BlackBorderProcessor();
BlackBorder getCurrentBorder() const;
bool process(const RgbImage& image);
private:
const unsigned _unknownSwitchCnt;
const unsigned _borderSwitchCnt;
BlackBorderDetector _detector;
BlackBorder _currentBorder;
BlackBorder _lastDetectedBorder;
unsigned _consistentCnt;
};