A unified direct approach for visual servoing and visual tracking using mutual information