mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-09 00:09:58 +00:00
After calibration refinement, the sensor positions in live view now show correctly.
This commit is contained in:
@@ -358,6 +358,7 @@ namespace KinectServer
|
||||
|
||||
//Update the calibration data in client machines.
|
||||
List<AffineTransform> worldTransforms = oServer.lWorldTransforms;
|
||||
List<AffineTransform> cameraPoses = oServer.lCameraPoses;
|
||||
|
||||
for (int i = 0; i < worldTransforms.Count; i++)
|
||||
{
|
||||
@@ -371,6 +372,7 @@ namespace KinectServer
|
||||
}
|
||||
|
||||
worldTransforms[i].t[j] += tempT[j];
|
||||
cameraPoses[i].t[j] += Ts[i][j];
|
||||
}
|
||||
|
||||
for (int j = 0; j < 3; j++)
|
||||
@@ -383,11 +385,13 @@ namespace KinectServer
|
||||
}
|
||||
|
||||
worldTransforms[i].R[j, k] = tempR[j, k];
|
||||
cameraPoses[i].R[j, k] = tempR[j, k];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
oServer.lWorldTransforms = worldTransforms;
|
||||
oServer.lCameraPoses = cameraPoses;
|
||||
|
||||
oServer.SendCalibrationData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user