Automatic analysis of the difference image for unsupervised change detection