We have proposed a general formulation for the weighted semblance. The traditional semblance is no more than a weighted semblance with constant weight. The AB semblance corresponds to a weighted semblance with a trend function derived from the data. With a weighting function using the local similarity between each trace and a reference trace, the acquired semblance spectra can get an obvious higher resolution, which is picking friendly. The proposed approach can also be combined with the AB semblance with an increased resolution and ability for handling AVO anomalies. Three kinds of synthetic example and two field data examples demonstrate the performance of our proposed approach.