MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / get_frames

Method get_frames

example/util/planeSeg_util.cc:122–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122std::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
141std::vector<ImageSequence_withPlaneSeg::img_info> ImageSequence_withPlaneSeg::acquire_image_information(const std::string &seq_dir_path,
142 const std::string &timestamp_file_path) const

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected