Extremal region filtering