Simple histogram filter