1. A method for matching a plurality of data sets from boreholes or core sections, the data sets being obtained from sensors are two-dimensional data sets and are indicative of earth formation, boundary, or interface of earth formations and of dip in the vicinity of the borehole, the method for depth matching comprising: (a) the two-dimensional data sets are transformed into three-dimensional images using the Hough transform; (b) two dimensional curves are derived from the three-dimensional images by the application of the Hough transform to depth derivatives of sensor signals, generated by sensors; and (c) an offset is derived from the two-dimensional curves for applying to the two dimensional data sets to depth match them to each other.