Using Contours to Detect and Localize Junctions in Natural Images