Merge branch 'develop' of http://gitlab.mynt.com/mynteye/mynt-eye-sdk-2 into develop
This commit is contained in:
commit
5a5aa8dbaf
|
@ -640,7 +640,13 @@ void Device::UpdateStreamIntrinsics(
|
||||||
for (auto &¶ms : all_img_params_) {
|
for (auto &¶ms : all_img_params_) {
|
||||||
auto &&img_res = params.first;
|
auto &&img_res = params.first;
|
||||||
auto &&img_params = params.second;
|
auto &&img_params = params.second;
|
||||||
if (img_params.ok && img_res == request.GetResolution()) {
|
bool ok = false;
|
||||||
|
if (capability == Capabilities::STEREO_COLOR) {
|
||||||
|
ok = img_params.ok && img_res.width == request.GetResolution().width / 2;
|
||||||
|
} else if (capability == Capabilities::STEREO) {
|
||||||
|
ok = img_params.ok && img_res == request.GetResolution();
|
||||||
|
}
|
||||||
|
if (ok) {
|
||||||
SetIntrinsics(Stream::LEFT, img_params.in_left);
|
SetIntrinsics(Stream::LEFT, img_params.in_left);
|
||||||
SetIntrinsics(Stream::RIGHT, img_params.in_right);
|
SetIntrinsics(Stream::RIGHT, img_params.in_right);
|
||||||
SetExtrinsics(Stream::LEFT, Stream::RIGHT, img_params.ex_right_to_left);
|
SetExtrinsics(Stream::LEFT, Stream::RIGHT, img_params.ex_right_to_left);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user