MoveDetect  v0.0.1
C++ library to detect movement in video frames
All Classes Namespaces Functions Variables Typedefs Pages
MoveDetect Namespace Reference

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 Documentation

◆ ControlMap

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.

Function Documentation

◆ psnr()

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

Returns
Values higher than 30 indicate very similar images. Values < 30 indicate changes were detected. The closer to zero, the more changes have been detected.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ simple_colour_balance()