mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
31 lines
427 B
C
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;
|
||
|
};
|
||
|
|