| 78 | } |
| 79 | |
| 80 | std::vector<tum_rgbd_sequence::frame> tum_rgbd_sequence::get_frames() const |
| 81 | { |
| 82 | std::vector<frame> frames; |
| 83 | assert(timestamps_.size() == rgb_img_file_paths_.size()); |
| 84 | assert(timestamps_.size() == depth_img_file_paths_.size()); |
| 85 | assert(rgb_img_file_paths_.size() == depth_img_file_paths_.size()); |
| 86 | for (unsigned int i = 0; i < timestamps_.size(); ++i) |
| 87 | { |
| 88 | frames.emplace_back(frame{rgb_img_file_paths_.at(i), depth_img_file_paths_.at(i), timestamps_.at(i)}); |
| 89 | } |
| 90 | return frames; |
| 91 | } |
| 92 | |
| 93 | std::vector<tum_rgbd_sequence::img_info> tum_rgbd_sequence::acquire_image_information(const std::string &seq_dir_path, |
| 94 | const std::string ×tamp_file_path) const |