Contour detection is an important step in contour based object analysis in 2D images. We present a novel method for contour detection optimized for contour traversal tasks in 2Dimages. The method is based on morphological operations and detects a one-pixel wide contour around objects in binary images. Performance of the method is evaluated on ground truth imagesfrom our dataset created by manually tracing the contour in images. Proposed method achieves high DICE coefficient overlap to ground truth images and superior detection compared to other state-of-the-art methods.