#include <dataset-frames.h>
◆ DatasetFrames()
| DatasetFrames::DatasetFrames |
( |
const Settings & |
config | ) |
|
◆ begin() [1/2]
| std::vector<VideoFrame>::iterator sh::DatasetFrames::begin |
( |
| ) |
|
|
inline |
◆ begin() [2/2]
| std::vector<VideoFrame>::const_iterator sh::DatasetFrames::begin |
( |
| ) |
const |
|
inline |
◆ end() [1/2]
| std::vector<VideoFrame>::iterator sh::DatasetFrames::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
| std::vector<VideoFrame>::const_iterator sh::DatasetFrames::end |
( |
| ) |
const |
|
inline |
◆ get_all_video_frames()
Return copy of FrameRange representing all selected frames from the given video.
◆ get_frame() [1/2]
◆ get_frame() [2/2]
◆ get_frame_it()
| std::vector<VideoFrame>::const_iterator sh::DatasetFrames::get_frame_it |
( |
FrameId |
i | ) |
const |
|
inline |
◆ get_frame_ptr() [1/2]
◆ get_frame_ptr() [2/2]
◆ get_num_videos()
| size_t sh::DatasetFrames::get_num_videos |
( |
| ) |
const |
|
inline |
◆ get_shot_frames()
| FrameRange sh::DatasetFrames::get_shot_frames |
( |
VideoId |
video_ID, |
|
|
size_t |
frame_num_from, |
|
|
size_t |
frame_num_to |
|
) |
| const |
|
inline |
Returns new instance of FrameRange representing all frames from prvided video ID in interval [frame_num_from, frame_num_to].
◆ get_video_id()
◆ ids_to_video_frame()
Translation to VideoFrameRefs from vector ids or FrameRange.
◆ operator[]()
| std::string sh::DatasetFrames::operator[] |
( |
FrameId |
i | ) |
const |
|
inline |
◆ parse_metadata_line()
| FiltersData DatasetFrames::parse_metadata_line |
( |
const std::string & |
line | ) |
|
|
private |
Parses the desired metadata from the metadata line.
◆ parse_top_kws_for_imgs_text_file()
| std::vector< std::vector< KeywordId > > DatasetFrames::parse_top_kws_for_imgs_text_file |
( |
const std::string & |
filepath | ) |
|
|
staticprivate |
Parses a text file with lists of top keywords for given image ID.
e.g: with_top.images_top_keywords.txt
Line determines image ID therefore input file must have them sorted.
◆ parse_video_filename()
| VideoFrame DatasetFrames::parse_video_filename |
( |
std::string && |
filename | ) |
|
|
private |
From filename string it parses useful info as video/shot/frame ID etc.
◆ range_to_video_frame()
◆ size()
| size_t sh::DatasetFrames::size |
( |
| ) |
const |
|
inline |
◆ _frames
| std::vector<VideoFrame> sh::DatasetFrames::_frames |
|
private |
◆ _video_ID_to_frame_range
| std::vector<FrameRange> sh::DatasetFrames::_video_ID_to_frame_range |
|
private |
Map from video ID to range of image IDs.
◆ frames_dir
| std::string sh::DatasetFrames::frames_dir |
|
private |
◆ offs
◆ thumbs_dir
| std::string sh::DatasetFrames::thumbs_dir |
|
private |
The documentation for this class was generated from the following files: