LArOpenCV  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ImageManager.h
Go to the documentation of this file.
1 
14 #ifndef IMAGEMANAGER_H
15 #define IMAGEMANAGER_H
16 
17 #include <opencv2/opencv.hpp>
18 #include <opencv2/core/core.hpp>
19 #include <iostream>
20 #include <vector>
21 #include "laropencv_base.h"
22 #include "larbys.h"
23 #include "ImageMeta.h"
24 namespace larcv {
31  class ImageManager : public laropencv_base{
32 
33  public:
34 
36  ImageManager(const std::string name="ImageManager") : laropencv_base(name) {}
37 
40 
42  size_t size() const { return _mat_v.size(); }
44  void push_back(const ::cv::Mat& img, const larcv::ImageMeta& meta);
46  ::cv::Mat& img_at(size_t index=0);
48  larcv::ImageMeta& meta_at(size_t index=0);
50  void clear();
51 
52  protected:
54  std::vector<cv::Mat> _mat_v;
56  std::vector<larcv::ImageMeta> _meta_v;
57 
58  };
59 }
60 #endif
61  // end of doxygen group
62