ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
convert_imageset.cpp File Reference
#include <algorithm>
#include <fstream>
#include <string>
#include <utility>
#include <vector>
#include "boost/scoped_ptr.hpp"
#include "gflags/gflags.h"
#include "glog/logging.h"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/db.hpp"
#include "caffe/util/format.hpp"
#include "caffe/util/io.hpp"
#include "caffe/util/rng.hpp"

Functions

 DEFINE_bool (gray, false, "When this option is on, treat images as grayscale ones")
 
 DEFINE_bool (shuffle, false, "Randomly shuffle the order of images and their labels")
 
 DEFINE_string (backend, "lmdb", "The backend {lmdb, leveldb} for storing the result")
 
 DEFINE_int32 (resize_width, 0, "Width images are resized to")
 
 DEFINE_int32 (resize_height, 0, "Height images are resized to")
 
 DEFINE_bool (check_size, false, "When this option is on, check that all the datum have the same size")
 
 DEFINE_bool (encoded, false, "When this option is on, the encoded image will be save in datum")
 
 DEFINE_string (encode_type, "", "Optional: What type should we encode the image as ('png','jpg',...).")
 
int main (int argc, char **argv)
 

Function Documentation

◆ DEFINE_bool() [1/4]

DEFINE_bool ( check_size  ,
false  ,
"When this option is  on,
check that all the datum have the same size"   
)

◆ DEFINE_bool() [2/4]

DEFINE_bool ( encoded  ,
false  ,
"When this option is  on,
the encoded image will be save in datum"   
)

◆ DEFINE_bool() [3/4]

DEFINE_bool ( gray  ,
false  ,
"When this option is  on,
treat images as grayscale ones"   
)

◆ DEFINE_bool() [4/4]

DEFINE_bool ( shuffle  ,
false  ,
"Randomly shuffle the order of images and their labels"   
)

◆ DEFINE_int32() [1/2]

DEFINE_int32 ( resize_height  ,
,
"Height images are resized to"   
)

◆ DEFINE_int32() [2/2]

DEFINE_int32 ( resize_width  ,
,
"Width images are resized to"   
)

◆ DEFINE_string() [1/2]

DEFINE_string ( backend  ,
"lmdb"  ,
"The backend {lmdb, leveldb} for storing the result"   
)

◆ DEFINE_string() [2/2]

DEFINE_string ( encode_type  ,
""  ,
"Optional: What type should we encode the image as ('png','jpg',...)."   
)

◆ main()

int main ( int  argc,
char **  argv 
)