The shock filter