summaryrefslogtreecommitdiffhomepage
path: root/tracker-kinect-face
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-29 18:44:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-29 18:49:33 +0200
commit4a8aa4397aa578e19ce7e6a0b1fdd702bd4187d5 (patch)
tree20731fdd439c4309fbd471d2484a79d328e92292 /tracker-kinect-face
parentce79d1556bf8d43665694d7dd75571a79d175615 (diff)
video: break camera API
Diffstat (limited to 'tracker-kinect-face')
-rw-r--r--tracker-kinect-face/camera_kinect_ir.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tracker-kinect-face/camera_kinect_ir.cpp b/tracker-kinect-face/camera_kinect_ir.cpp
index 4d442bf2..a4e6b203 100644
--- a/tracker-kinect-face/camera_kinect_ir.cpp
+++ b/tracker-kinect-face/camera_kinect_ir.cpp
@@ -105,7 +105,7 @@ namespace Kinect {
iFrame.height = iHeight;
iFrame.stride = cv::Mat::AUTO_STEP;
iFrame.channels = iMatFrame.channels();
- iFrame.channelSize = iMatFrame.elemSize1();
+ iFrame.channel_size = iMatFrame.elemSize1();
return { iFrame, new_frame };
}
@@ -177,13 +177,13 @@ namespace Kinect {
hr = iCoordinateMapper->GetDepthCameraIntrinsics(&intrinsics);
if (SUCCEEDED(hr))
{
- aInfo.focalLengthX = intrinsics.FocalLengthX;
- aInfo.focalLengthY = intrinsics.FocalLengthY;
- aInfo.principalPointX = intrinsics.PrincipalPointX;
- aInfo.principalPointY = intrinsics.PrincipalPointY;
- aInfo.radialDistortionFourthOrder = intrinsics.RadialDistortionFourthOrder;
- aInfo.radialDistortionSecondOrder = intrinsics.RadialDistortionSecondOrder;
- aInfo.radialDistortionSixthOrder = intrinsics.RadialDistortionSixthOrder;
+ aInfo.fx = intrinsics.FocalLengthX;
+ aInfo.fy = intrinsics.FocalLengthY;
+ aInfo.P_x = intrinsics.PrincipalPointX;
+ aInfo.P_y = intrinsics.PrincipalPointY;
+ aInfo.dist_c[1] = intrinsics.RadialDistortionSecondOrder;
+ aInfo.dist_c[3] = intrinsics.RadialDistortionFourthOrder;
+ aInfo.dist_c[5] = intrinsics.RadialDistortionSixthOrder;
}
}