Convergence Of The Mean Shift Algorithm And Its Generalizations