lm2projective function

Computes model for the projective transformation