28 std::vector<std::string> lines;
29 std::string datasetBaseDir;
30 std::string datasetName;
31 std::string workspaceDir;
41 size_t readAnnotation(
const char * filepathname);
47 void appendAnnotation(std::string line);
56 FileManager(
const char * annotationpathname,
int level = 0);
103 std::string
replaceExt(
const std::string & imageName,
const char * ext)
const;
111 static std::string
replacePath(
const std::string & imageName,
const char * newpath);
120 std::string
getQueryName(
size_t i,
bool absolutePathname =
true)
const;
FileManager(const char *annotationpathname, int level=0)
Read the list of images from the given annotation file.
Helper class to manage lists of file names.
Definition: FileManager.h:26
std::string getQueryName(size_t i, bool absolutePathname=true) const
Get the first image name found at the i-th position in the annotation file.
int countNames(size_t i) const
Count how many pathnames are contained in the i-th line.
std::string replaceExt(const std::string &imageName, const char *ext) const
Convert a pathname into a pathname with the given extension.
Namespace used to encapsulate all MPEG-7 CDVA declarations.
Definition: Buffer.h:14
size_t getDatasetSize() const
Get the dataset size.
std::string getReferenceName(size_t i, bool absolutePathname=true) const
Get the second image name found at the i-th position in the annotation file.
std::string getDatasetPath() const
Get the dataset base directory.
void setWorkspaceDir(const char *workdir)
Set the workspace directory.
std::string getDatasetPathName() const
Get the dataset full pathname.
static std::string replacePath(const std::string &imageName, const char *newpath)
Convert a pathname into a pathname with the given new path.
std::string getWorkspaceDir() const
Get the workspace directory.
std::string getDatasetName() const
Get the dataset name.