'**SUMMARY**
saveCalibration is a method to save the StereoCalibration parameters such as CM1, CM2, D1, D2, R, T, E, F of stereo pair.
This method returns True on success and saves the calibration in the following format.
StereoCM1.txt
StereoCM2.txt
StereoD1.txt
StereoD2.txt
StereoR.txt
StereoT.txt
StereoE.txt
StereoF.txt
**PARAMETERS**
calibration - is a tuple os the form (CM1, CM2, D1, D2, R, T, E, F)
CM1 -> Camera Matrix for left camera,
CM2 -> Camera Matrix for right camera,
D1 -> Vector of distortion coefficients for left camera,
D2 -> Vector of distortion coefficients for right camera,
R -> Rotation matrix between the left and the right camera coordinate systems,
T -> Translation vector between the left and the right coordinate systems of the cameras,
E -> Essential matrix,
F -> Fundamental matrix
**RETURNS**
return True on success and saves the calibration files.
**EXAMPLE**
>>> StereoCam = StereoCamera()
>>> calibration = StereoCam.StereoCalibration(1,2,nboards=40)
>>> StereoCam.saveCalibration(calibration,fname="Stereo1")'

def saveCalibration(self, calibration=None, fname='Stereo', cdir='.'):

    filenames = ((fname + 'CM1.txt'), (fname + 'CM2.txt'), (fname + 'D1.txt'), (fname + 'D2.txt'), (fname + 'R.txt'), (fname + 'T.txt'), (fname + 'E.txt'), (fname + 'F.txt'))
    try:
        (CM1, CM2, D1, D2, R, T, E, F) = calibration
        cv.Save('{0}/{1}'.format(cdir, filenames[0]), CM1)
        cv.Save('{0}/{1}'.format(cdir, filenames[1]), CM2)
        cv.Save('{0}/{1}'.format(cdir, filenames[2]), D1)
        cv.Save('{0}/{1}'.format(cdir, filenames[3]), D2)
        cv.Save('{0}/{1}'.format(cdir, filenames[4]), R)
        cv.Save('{0}/{1}'.format(cdir, filenames[5]), T)
        cv.Save('{0}/{1}'.format(cdir, filenames[6]), E)
        cv.Save('{0}/{1}'.format(cdir, filenames[7]), F)
        print "Calibration    parameters    written    to    directory    '{0}'.".format(cdir)
        return True
    except:
        return False
