fix(device): fix print intrinsics and format

This commit is contained in:
John Zhao 2019-01-28 10:35:44 +08:00
parent 6988ae803b
commit 5322fc38f4
2 changed files with 3 additions and 2 deletions

View File

@ -652,8 +652,8 @@ void Device::UpdateStreamIntrinsics(
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);
VLOG(2) << "Intrinsics left: {" << GetIntrinsics(Stream::LEFT) << "}"; VLOG(2) << "Intrinsics left: {" << *GetIntrinsics(Stream::LEFT) << "}";
VLOG(2) << "Intrinsics right: {" << GetIntrinsics(Stream::RIGHT) << "}"; VLOG(2) << "Intrinsics right: {" << *GetIntrinsics(Stream::RIGHT) << "}";
VLOG(2) << "Extrinsics left to right: {" VLOG(2) << "Extrinsics left to right: {"
<< GetExtrinsics(Stream::LEFT, Stream::RIGHT) << "}"; << GetExtrinsics(Stream::LEFT, Stream::RIGHT) << "}";
break; break;

View File

@ -164,6 +164,7 @@ const char *to_string(const Format &value) {
CASE(GREY) CASE(GREY)
CASE(YUYV) CASE(YUYV)
CASE(BGR888) CASE(BGR888)
CASE(RGB888)
default: default:
return "Format::UNKNOWN"; return "Format::UNKNOWN";
} }