Automatic technique for detecting land-cover transitions