somewhat simple implementation of centre-surround histograms