Embodiments of the present invention improve edge detection in 2 dimensional image data that may be carried out automatically with minimal user involvement. The invention is carried automatically, using an image processing 5 technique that results in generation of a segmented edge contour, which may then be used in 3-dimensional reconstruction and segmentation. 30/04/08,kn 17247 specification,19 67 -6