In this paper, a novel adaptive network-based fuzzy inference system (ANFIS)-based filter, ABF, is presented for the restoration of images corrupted by impulsive noise (IN). The ABF is performed in two steps. In the first step, impulse detection is realized by using statistical tools. In the second step, a nonlinear filtering scheme based on ANFIS is performed for only the corrupted pixels detected in the first step. To demonstrate the effectivity of ABF at the removal of high-level IN, extensive simulations were realized for ABF and nine different comparison filters. Empirical results indicate that the proposed filter achieves a better performance than the comparison filters in terms of noise suppression and detail preservation, even when the images are highly corrupted by IN.