The invention discloses a stratum structure self-adaption median filtering method. The method comprises the steps of: 1, calculating a gradient 
structure tensor; 2, calculating a stratum lateral incontinuity measurement; 3, structuring a structure self-adaption median filtering device; and 4, performing structure self-adaption median filtering and 
processing. By utilizing the method, earthquake 
random noise and part coherent 
noise can be effectively attenuated, and stratum edge and detailed structure characteristics such as effective signals, geologic faults and amplitude abnormalities can be maintained in a filtering process; the 
algorithm of the technical scheme is easy to realize and has good 
operability; and moreover, a selection problem of a median filtering 
processing window size is avoided, the method meets the requirements of the median filtering 
processing of complicated signals, for data areas with good event extension, the filtering performance of the median filtering device is improved through adaptively controlling the direction characteristics of a filtering window, and for areas with geologic faults and angular 
unconformity, the maintaining performance of the median filtering device to stratum edge structures such as the geologic faults is improved through adaptively adjusting the size of the filtering window.