From 7746d2b1167a8996ab91a01be8a8c4bde4510b2e Mon Sep 17 00:00:00 2001 From: kalman Date: Sat, 12 Jan 2019 16:31:23 +0800 Subject: [PATCH] fix(device): fix intrinsic updating bug --- src/mynteye/device/device.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mynteye/device/device.cc b/src/mynteye/device/device.cc index 62b0cf6..6e1bd6e 100644 --- a/src/mynteye/device/device.cc +++ b/src/mynteye/device/device.cc @@ -642,7 +642,9 @@ void Device::UpdateStreamIntrinsics( auto &&img_params = params.second; bool ok = false; if (capability == Capabilities::STEREO_COLOR) { - ok = img_params.ok && img_res.width == request.GetResolution().width / 2; + ok = img_params.ok && + img_res.height == request.GetResolution().height && + img_res.width == request.GetResolution().width / 2; } else if (capability == Capabilities::STEREO) { ok = img_params.ok && img_res == request.GetResolution(); }