Template Hough transform so point type is flexible