forked from kvtsang/Supera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageMetaMaker.h
68 lines (47 loc) · 1.4 KB
/
ImageMetaMaker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* \file ImageMetaMaker.h
*
* \ingroup MeatSlicer
*
* \brief Class def header for a class ImageMetaMaker
*
* @author kazuhiro
*/
/** \addtogroup MeatSlicer
@{*/
#ifndef __IMAGEMETAMAKER_H__
#define __IMAGEMETAMAKER_H__
#include "ImageMetaMakerBase.h"
namespace larcv {
class SuperaMetaMaker;
}
namespace supera {
/**
\class ImageMetaMaker
User defined class ImageMetaMaker ... these comments are used to generate
doxygen documentation!
*/
class ImageMetaMaker{
friend class larcv::SuperaMetaMaker;
public:
/// Default constructor
ImageMetaMaker() : _meta_maker(nullptr)
{}
/// Default destructor
virtual ~ImageMetaMaker(){ delete _meta_maker; }
virtual void configure(const supera::Config_t&);
const std::vector<larcv::ImageMeta>& Meta() const;
const larcv::Voxel3DMeta& Meta3D() const;
const std::vector<size_t>& RowCompressionFactor() const;
const std::vector<size_t>& ColCompressionFactor() const;
inline ImageMetaMakerBase* MetaMakerPtr()
{ return _meta_maker; }
private:
ImageMetaMakerBase* _meta_maker;
static ImageMetaMakerBase* _shared_meta_maker;
inline static ImageMetaMakerBase* SharedMetaMaker() { return _shared_meta_maker; }
inline static void SetSharedMetaMaker(ImageMetaMakerBase* ptr) { _shared_meta_maker = ptr; }
};
}
#endif
/** @} */ // end of doxygen group