A method of tracking an alignment through data includes passing through the data a median filter operator in the form of a window and causing the operator to spin during its passage therethrough. The method can track alignments through 2-dimensional or 3-dimensional data using respectively a linear window or a planar window. A preferred use for the method is to track alignments in seismic data which correspond to discontinuities or events in the earth.