Another routine is FREAK feature extraction.
Firstly, find feature using FAST_GPU, and extract FREAK descriptor.
After extraction, 2 descriptor can compare same image or not.
This code is made for processing time check.
The process is enough to processing in real time, because image is resized and use GPU.
This example source code is for saving image file that specified a rectangle region by mouse drag on the video frame.
The method is easy.
Firstly, enter the file name included file extension (ex: s.avi)
Then, video will be play.
Press p key on the video play window, if you want to save image.
Video will play after end of drag and drag region will be saved in your folder.
'ESC' key is for program finish.