A Class of Cloud Detection Algorithms Based on a MAP-MRF Approach in Space and Time