The Mean Shift Algorithm