Representation of contours and regions for efficient computer search | Synapse