Multispectral Registration, Undistortion and Tree Detection for Precision Agriculture