LArOpenCV
1
|
User custom analysis class made by SHELL_USER_NAME. More...
#include <HitImageMaker.h>
Public Member Functions | |
HitImageMaker () | |
Default constructor. More... | |
virtual | ~HitImageMaker () |
Default destructor. More... | |
virtual bool | initialize () |
IMPLEMENT in HitImageMaker.cc! Initialization method to be called before the analysis event loop. More... | |
virtual bool | analyze (storage_manager *storage) |
IMPLEMENT in HitImageMaker.cc! Analyze a data event-by-event. More... | |
virtual bool | finalize () |
IMPLEMENT in HitImageMaker.cc! Finalize method to be called after all events processed. More... | |
PyObject * | GetImage (const size_t plane) |
PyObject * | GetCanny (const size_t plane) |
PyObject * | GetContour (const size_t plane, const size_t contour_index) |
size_t | NumContours (const size_t plane) const |
Protected Member Functions | |
void | init () |
Protected Attributes | |
std::vector<::cv::Mat > | _mat_v |
std::vector<::cv::Mat > | _canny_v |
std::vector< std::vector < larcv::Point2DArray > > | _contour_v |
User custom analysis class made by SHELL_USER_NAME.
Definition at line 35 of file HitImageMaker.h.
larlite::HitImageMaker::HitImageMaker | ( | ) |
|
inlinevirtual |
|
virtual |
IMPLEMENT in HitImageMaker.cc! Analyze a data event-by-event.
Canny detector
Definition at line 19 of file HitImageMaker.cxx.
References _canny_v, _contour_v, and _mat_v.
|
virtual |
IMPLEMENT in HitImageMaker.cc! Finalize method to be called after all events processed.
Definition at line 133 of file HitImageMaker.cxx.
PyObject * larlite::HitImageMaker::GetCanny | ( | const size_t | plane) |
Definition at line 150 of file HitImageMaker.cxx.
References _canny_v, _mat_v, larcaffe::msg::kERROR, and larcv::convert::NDArrayConverter::toNDArray().
PyObject * larlite::HitImageMaker::GetContour | ( | const size_t | plane, |
const size_t | contour_index | ||
) |
Definition at line 171 of file HitImageMaker.cxx.
References _contour_v, _mat_v, and larcaffe::msg::kERROR.
PyObject * larlite::HitImageMaker::GetImage | ( | const size_t | plane) |
Definition at line 138 of file HitImageMaker.cxx.
References _mat_v, larcaffe::msg::kERROR, and larcv::convert::NDArrayConverter::toNDArray().
|
protected |
Definition at line 12 of file HitImageMaker.cxx.
Referenced by HitImageMaker().
|
virtual |
IMPLEMENT in HitImageMaker.cc! Initialization method to be called before the analysis event loop.
Definition at line 15 of file HitImageMaker.cxx.
size_t larlite::HitImageMaker::NumContours | ( | const size_t | plane) | const |
Definition at line 162 of file HitImageMaker.cxx.
References _contour_v, _mat_v, and larcaffe::msg::kERROR.
|
protected |
Definition at line 69 of file HitImageMaker.h.
Referenced by analyze(), and GetCanny().
|
protected |
Definition at line 71 of file HitImageMaker.h.
Referenced by analyze(), GetContour(), and NumContours().
|
protected |
Definition at line 68 of file HitImageMaker.h.
Referenced by analyze(), GetCanny(), GetContour(), GetImage(), and NumContours().