A new adaptive detail preserving filter for image processing is presented.By comparing the difference of the values evaluated in the different directions or regions,this filter can decide which region (homogeneous region or detail region) the filtering pixels belong to and then apply different filtering schemes.This filter has better performance of noise filtering and detail preserving than the multistage median filter (MMF).It can be applied especially to the images simultaneously corrupted by Gaussian noise and impulsive noise,and is simple in computation and implementation.