| 120 | } |
| 121 | |
| 122 | std::vector<ImageSequence_withPlaneSeg::frame> ImageSequence_withPlaneSeg::get_frames() const |
| 123 | { |
| 124 | std::vector<frame> frames; |
| 125 | assert(timestamps_.size() == rgb_img_file_paths_.size()); |
| 126 | assert(timestamps_.size() == depth_img_file_paths_.size()); |
| 127 | assert(rgb_img_file_paths_.size() == depth_img_file_paths_.size()); |
| 128 | assert(rgb_img_file_paths_.size() == mask_img_file_paths_.size()); |
| 129 | |
| 130 | for (unsigned int i = 0; i < timestamps_.size(); ++i) |
| 131 | { |
| 132 | frames.emplace_back(frame{rgb_img_file_paths_.at(i), |
| 133 | depth_img_file_paths_.at(i), |
| 134 | mask_img_file_paths_.at(i), |
| 135 | timestamps_.at(i)}); |
| 136 | } |
| 137 | |
| 138 | return frames; |
| 139 | } |
| 140 | |
| 141 | std::vector<ImageSequence_withPlaneSeg::img_info> ImageSequence_withPlaneSeg::acquire_image_information(const std::string &seq_dir_path, |
| 142 | const std::string ×tamp_file_path) const |