Second-order histograms of binary images