Debug.Assert(objectPoints.Length==imagePoints1.Length&&objectPoints.Length==imagePoints2.Length,"The number of images for objects points should be equal to the number of images for image points");
intimageCount=objectPoints.Length;
//int imageCount = objectPoints.Length;
#region get the matrix that represent the object points