hyperion.ng/libsrc/hyperion/BlackBorderProcessor.h

31 lines
427 B
C
Raw Normal View History

#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;
};