chore(sample): sample add comment and cut some code.
This commit is contained in:
parent
e1485e2103
commit
52d75f1d53
|
@ -111,18 +111,22 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
cv::imshow("frame", img);
|
cv::imshow("frame", img);
|
||||||
if (img_count > 10 && imu_count > 50) { // save
|
if (img_count > 10 && imu_count > 50) { // save
|
||||||
|
// save Stream::LEFT
|
||||||
for (auto &&left : left_datas) {
|
for (auto &&left : left_datas) {
|
||||||
dataset.SaveStreamData(Stream::LEFT, left);
|
dataset.SaveStreamData(Stream::LEFT, left);
|
||||||
}
|
}
|
||||||
for (auto &&right : right_datas) {
|
// save Stream::RIGHT
|
||||||
dataset.SaveStreamData(Stream::RIGHT, right);
|
// for (auto &&right : right_datas) {
|
||||||
}
|
// dataset.SaveStreamData(Stream::RIGHT, right);
|
||||||
|
// }
|
||||||
|
// save Stream::DEPTH
|
||||||
for (auto &&depth : depth_datas) {
|
for (auto &&depth : depth_datas) {
|
||||||
dataset.SaveStreamData(Stream::DEPTH, depth);
|
dataset.SaveStreamData(Stream::DEPTH, depth);
|
||||||
}
|
}
|
||||||
for (auto &&disparity : disparity_datas) {
|
// save Stream::DISPARITY
|
||||||
dataset.SaveStreamData(Stream::DISPARITY, disparity);
|
// for (auto &&disparity : disparity_datas) {
|
||||||
}
|
// dataset.SaveStreamData(Stream::DISPARITY, disparity);
|
||||||
|
// }
|
||||||
|
|
||||||
for (auto &&motion : motion_datas) {
|
for (auto &&motion : motion_datas) {
|
||||||
dataset.SaveMotionData(motion);
|
dataset.SaveMotionData(motion);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user