Automatic Calibration and Reconstruction for Active Vision Systems