A minimum-cost thresholding technique for unsupervised change detection