Similarity templates for detection and recognition | Synapse