MRF-based remote-sensing image classification with automatic model-parameter estimation