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