void Init(synesis.CombinedMarkerCalibration cCalibration) { matrixFormat = new MatrixValue(synesis.MatrixFormat.Item1); if (cCalibration.CombinedMarkers.Count() != 1) return; physicalHeight = cCalibration.CombinedMarkers[0].Height; physicalWidth = cCalibration.CombinedMarkers[0].Width; if (cCalibration.CombinedMarkers[0].Rectangles.Count() != 2) return; unitedMarker1 = new UnitedMarker(cCalibration.CombinedMarkers[0].Rectangles[0], 1); unitedMarker2 = new UnitedMarker(cCalibration.CombinedMarkers[0].Rectangles[1], 2); }
void Init(synesis.HeightMarkerCalibration hCalibration) { FocalLength = hCalibration.FocalLength; MatrixFormat = new MatrixValue(hCalibration.MatrixFormat); if (hCalibration.HeightMarkers.Count() != 1) return; physicalHeight = hCalibration.HeightMarkers[0].Height; physicalWidth = physicalHeight; if (hCalibration.HeightMarkers[0].SurfaceNormals.Count() != 2) return; unitedMarker1 = new UnitedMarker(hCalibration.HeightMarkers[0].SurfaceNormals[0], 1); unitedMarker2 = new UnitedMarker(hCalibration.HeightMarkers[0].SurfaceNormals[1], 2); }