36 #include <boost/filesystem.hpp> 48 #define ARG_SCENES_DEFAULT 10 49 #define ARG_START_DEFAULT 0 51 #define ARG_IMGS_DIR_DEFAULT "imgs" 53 #define ARG_DATASET_DIR_DEFAULT "dataset" 60 const std::string
getUsage(
const char* argv_0);
72 unsigned int & scenes,
74 std::string & imgs_dir,
75 std::string & dataset_dir);
int getRandomInt(int min, int max)
Get a random integer in a given interval.
Definition: dr_example.cc:86
const std::string getUsage(const char *argv_0)
Returns string with program usage information.
Definition: utils.cc:27
double getRandomDouble(double min, double max)
Get a random double in a given interval.
Definition: dr_example.cc:93
bool createDirectory(std::string &path)
Creates the directory given its path.
Definition: utils.cc:83
void parseArgs(int argc, char **argv, unsigned int &scenes, unsigned int &start, std::string &imgs_dir, std::string &dataset_dir)
Parses command-line arguments.
Definition: utils.cc:38
void shuffleIntVector(std::vector< int > &vector)
Randomly shuffles an integer vector.
Definition: utils.cc:125