2 #ifndef vul_sequence_filename_map_h_ 3 #define vul_sequence_filename_map_h_ 19 # include <vcl_msvc_warnings.h> 43 std::vector<int> indices);
45 int start,
int end,
int step = 1);
51 std::string
name(
int frame);
78 std::ostream&
print(std::ostream& s)
const;
99 #endif // vul_sequence_filename_map_h_
std::ostream & print(std::ostream &s) const
pretty print.
std::string get_base_name() const
returns the base name e.h. "img.".
~vul_sequence_filename_map()
int get_real_index(int frame) const
returns the actually on-disk index corresponding to frame N.
std::string get_image_extension() const
returns the image extension e.g. ".pgm".
std::vector< int > const & get_real_indices() const
std::string get_image_dir() const
returns the image directory e.g. "pgm/".
std::vector< int > indices_
int get_mapped_index(int real) const
returns the frame number corresp. to on-disk index N, or -1 if out-of-range.
int extract_index(char const *name)
std::string image_name(int frame)
std::string name(int frame)
returns frame name with no extension, e.g. "img.003", "img.003.004".
std::string triplet_name(int i, int j, int k)
bool filter_dirent(char const *name, std::string const &extension)
std::string index_format_
vul_sequence_filename_map()
Maps sequence frame indices to filenames.
std::string pair_name(int i, int j)
std::ostream & operator<<(std::ostream &os, const vul_sequence_filename_map &s)
std::string image_extension_
std::string seq_template_