LArOpenCV
1
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Play
HitImageMaker.h
Go to the documentation of this file.
1
15
#ifndef LARLITE_HITIMAGEMAKER_H
16
#define LARLITE_HITIMAGEMAKER_H
17
18
#include "Analysis/ana_base.h"
19
#include "opencv2/core/mat.hpp"
20
#include "Utils/DataTypes.h"
21
struct
_object;
22
typedef
_object
PyObject
;
23
24
#ifndef __CINT__
25
#include "Python.h"
26
#include "numpy/arrayobject.h"
27
#endif
28
29
namespace
larlite {
30
35
class
HitImageMaker
:
public
ana_base{
36
37
public
:
38
40
HitImageMaker
();
41
43
virtual
~HitImageMaker
(){}
44
45
49
virtual
bool
initialize
();
50
54
virtual
bool
analyze
(storage_manager* storage);
55
59
virtual
bool
finalize
();
60
61
PyObject
*
GetImage
(
const
size_t
plane);
62
PyObject
*
GetCanny
(
const
size_t
plane);
63
PyObject
*
GetContour
(
const
size_t
plane,
const
size_t
contour_index);
64
size_t
NumContours
(
const
size_t
plane)
const
;
65
66
protected
:
67
void
init
();
68
std::vector<::cv::Mat>
_mat_v
;
69
std::vector<::cv::Mat>
_canny_v
;
70
71
std::vector< std::vector<larcv::Point2DArray> >
_contour_v
;
72
};
73
}
74
#endif
75
76
//**************************************************************************
77
//
78
// For Analysis framework documentation, read Manual.pdf here:
79
//
80
// http://microboone-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=3183
81
//
82
//**************************************************************************
83
// end of doxygen group
Generated on Wed Jan 27 2016 14:36:23 for LArOpenCV by
1.8.4