LArOpenCV  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
SBCluster.h
Go to the documentation of this file.
1 //by vic
2 
3 #ifndef __SBCLUSTER_H__
4 #define __SBCLUSTER_H__
5 
6 #include "ImageClusterBase.h"
7 
8 namespace larcv {
9 
11 
12  public:
13 
15  SBCluster(const std::string name = "SBCluster") :
16  ImageClusterBase(name),
17  _dilation_size ( 5 ),
18  _dilation_iter ( 2 ),
19  _blur_size ( 5 ),
20  _thresh ( 1 ),
21  _thresh_maxval (255)
22  {}
23 
25  virtual ~SBCluster(){}
26 
27 
28  protected:
29 
31  void _Configure_(const ::fcllite::PSet &pset);
32 
34  const ::cv::Mat& img,
35  larcv::ImageMeta& meta);
36 
37  private:
38 
42  float _thresh;
44 
45  };
51  public:
57  ImageClusterBase* create(const std::string instance_name) { return new SBCluster(instance_name); }
58  };
61 
62 }
63 #endif
64  // end of doxygen group
65