Classes | |
class | Handler |
This class is used to store some image thumbnails, configuration settings, and also contains the detect() method which is used to determine if a video frame has movement. More... | |
Typedefs | |
typedef std::map< size_t, cv::Mat > | ControlMap |
We keep several control thumbnail images to compare against. More... | |
Functions | |
double | psnr (const cv::Mat &src, const cv::Mat &dst) |
Peak Signal To Noise is an algorithm which as a side effect can be used to compare two similar images. More... | |
cv::Mat | simple_colour_balance (const cv::Mat &src) |
Simple colour balancing. More... | |
typedef std::map<size_t, cv::Mat> MoveDetect::ControlMap |
We keep several control thumbnail images to compare against.
This typedef defines the map that tracks these thumbnails. The key is the frame index, the value is the thumbnail itself.
double MoveDetect::psnr | ( | const cv::Mat & | src, |
const cv::Mat & | dst | ||
) |
Peak Signal To Noise is an algorithm which as a side effect can be used to compare two similar images.
Source: https://docs.opencv.org/master/d5/dc4/tutorial_video_input_psnr_ssim.html
cv::Mat MoveDetect::simple_colour_balance | ( | const cv::Mat & | src | ) |
Simple colour balancing.