Add new file ciratefiAlgorithm.h and ciratefiAlgorithm.cpp
They will be used to write the algorithm of ciratefi.:
Add class CirateData
It can save and change the parameters of ciratefi in the future.
Add button that can be used to load source image
When user clicks this button, program will show the dialog that let user choose a image from the user's computer and load the image.
Add Picture control to show the source image be loaded
The OpenCV class Mat can not be directly showed on the MFC Picture control, it must translate to another type that Picture Control can show directly.
Add function to translaimage type from Mat to CImage and show it on Picture Control
Add RedrawWindow() to redraw the Picture control before showing new image
Add button that can load the template image while user clicks it.
Add Picture Control to display the template image while the image is being loaded
When the program loads the image, it will call RedrawWindow() and causes other image being display on Picture Control will be erased.
Solve the problem that program will erase the image has been showed on the Picture control
I solve it by pass the position of the control to RedrawWindow(). By using this parameter, it will only redraw the range of the control.
Rename the class CirateData to CiratefiData
Declare and initialize some parameters that will be used in Ciratefi algorithm
Add function Cissa and CircularSample to calculate all circular sample of source image
I also finish some function round and clip that help for calculating circular sample.
Add function to validate the position of image while the position is out of range of the image
Add function to cut the template into square
The length of square and the center of square are the same as the template
Add function Cissq to calculate the circular sample of different scales of template
Add function Cifi to calculate all correlation coefficient between any position of source and template
Add function to draw the result of the cifi on the source
Merge branch 'ciratefi' into ui
Change the size of picture control and the position of button and picture control
Fixed the error of check the range of image