Template match with shape/edge model highlights: build model with subpixel edge compute score method: dot product(original) to lookup table of cos we can build model only once at 0 degree in each level of pyramids with features 1. and 2. usage: reference to main function gallery model: result: