Fix issue with error detection.
Change Point2f to Point2i.
Use Point2f is not necessary and may result in an error since two image patches have different size in NCC calculating function.