LArOpenCV
1
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
ImageCluster
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
10
class
SBCluster
:
public
larcv::ImageClusterBase
{
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
33
larcv::ContourArray_t
_Process_
(
const
larcv::ContourArray_t
& clusters,
34
const ::cv::Mat& img,
35
larcv::ImageMeta
& meta);
36
37
private
:
38
39
int
_dilation_size
;
40
int
_dilation_iter
;
41
int
_blur_size
;
42
float
_thresh
;
43
float
_thresh_maxval
;
44
45
};
50
class
SBClusterFactory
:
public
ImageClusterFactoryBase
{
51
public
:
53
SBClusterFactory
() {
ImageClusterFactory::get
().
add_factory
(
"SBCluster"
,
this
); }
55
~SBClusterFactory
() {}
57
ImageClusterBase
*
create
(
const
std::string instance_name) {
return
new
SBCluster
(instance_name); }
58
};
60
static
SBClusterFactory
__global_SBClusterFactory__
;
61
62
}
63
#endif
64
// end of doxygen group
65
Generated on Wed Jan 27 2016 14:36:23 for LArOpenCV by
1.8.4