1. A method for matching a stored contour template with a contour of an object, comprising: receiving at least one candidate array comprising a respective plurality of direction values at least partially defining a respective contour of an object within a two-dimensional image; and comparing the candidate array with at least one stored template array comprising a respective plurality of direction values at least partially defining an outline of a predetermined object of interest.