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