1 #ifndef IMAGE_ITERATORS_
2 #define IMAGE_ITERATORS_
4 #define cimg_use_lapack
20 const int raw_image_size,
const bool flip,
21 const bool translate);
24 void GetNext(T* data_ptr);
25 void GetNext(T* data_ptr,
const int row,
const int position);
27 void Seek(
int row) { row_ = row; }
28 int GetDataSetSize()
const {
return dataset_size_;}
31 void GetCoordinates(
int width,
int height,
int position,
int* left,
int* top,
bool* flip);
33 int dataset_size_, row_, image_id_, position_;
34 vector<string> filenames_;
36 const int image_size_, num_positions_, raw_image_size_;
45 void SetImage(
const string& filename);
46 int GetNumWindows() {
return num_windows_;}
47 void GetNext(T* data_ptr);
48 void GetNext(T* data_ptr,
int left,
int top);
53 const int window_size_, stride_;
54 int num_windows_, center_x_, center_y_;
An iterator over list of image files.
Definition: image_iterators.h:17
An iterator over sliding windows of an image.
Definition: image_iterators.h:42