Refac: change CannyDetector, MatchTemplate, Smoothing, Threshold