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);
|
||||
if (img_count > 10 && imu_count > 50) { // save
|
||||
// save Stream::LEFT
|
||||
for (auto &&left : left_datas) {
|
||||
dataset.SaveStreamData(Stream::LEFT, left);
|
||||
}
|
||||
for (auto &&right : right_datas) {
|
||||
dataset.SaveStreamData(Stream::RIGHT, right);
|
||||
}
|
||||
// save Stream::RIGHT
|
||||
// for (auto &&right : right_datas) {
|
||||
// dataset.SaveStreamData(Stream::RIGHT, right);
|
||||
// }
|
||||
// save Stream::DEPTH
|
||||
for (auto &&depth : depth_datas) {
|
||||
dataset.SaveStreamData(Stream::DEPTH, depth);
|
||||
}
|
||||
for (auto &&disparity : disparity_datas) {
|
||||
dataset.SaveStreamData(Stream::DISPARITY, disparity);
|
||||
}
|
||||
// save Stream::DISPARITY
|
||||
// for (auto &&disparity : disparity_datas) {
|
||||
// dataset.SaveStreamData(Stream::DISPARITY, disparity);
|
||||
// }
|
||||
|
||||
for (auto &&motion : motion_datas) {
|
||||
dataset.SaveMotionData(motion);
|
||||
|
|
Loading…
Reference in New Issue
Block a user