Fucntions to compute visual servoing matrices.