hyperion.ng
|
The BlackBorderDetector performs detection of black-borders on a single image. More...
#include <BlackBorderDetector.h>
Public Member Functions | |
BlackBorderDetector (double threshold) | |
Constructs a black-border detector. More... | |
uint8_t | calculateThreshold (double blackborderThreshold) |
Performs the actual black-border detection on the given image. More... | |
template<typename Pixel_T > | |
BlackBorder | process (const Image< Pixel_T > &image) |
default detection mode (3lines 4side detection) | |
template<typename Pixel_T > | |
BlackBorder | process_classic (const Image< Pixel_T > &image) |
classic detection mode (topleft single line mode) | |
template<typename Pixel_T > | |
BlackBorder | process_osd (const Image< Pixel_T > &image) |
osd detection mode (find x then y at detected x to avoid changes by osd overlays) | |
The BlackBorderDetector performs detection of black-borders on a single image.
The detector will search for the upper left corner of the picture in the frame. Based on detected black pixels it will give an estimate of the black-border.
BlackBorderDetector::BlackBorderDetector | ( | double | threshold | ) |
Constructs a black-border detector.
[in] | blackborderThreshold | The threshold which the blackborder detector should use |
uint8_t BlackBorderDetector::calculateThreshold | ( | double | blackborderThreshold | ) |
Performs the actual black-border detection on the given image.
[in] | image | The image on which detection is performed |