Automatic cloud detection for high spatial resolution multi-temporal images