Classification of remote-sensing images by using the Bayes rule for minimum cost