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
ToyImageCluster.h
Go to the documentation of this file.
1
14
#ifndef __TOYIMAGECLUSTER_H__
15
#define __TOYIMAGECLUSTER_H__
16
17
#include "
ImageClusterBase.h
"
18
19
namespace
larcv {
24
class
ToyImageCluster
:
public
larcv::ImageClusterBase
{
25
26
public
:
27
29
ToyImageCluster
(
const
std::string name=
"ToyImageCluster"
) :
ImageClusterBase
(name)
30
{}
31
33
~ToyImageCluster
(){}
34
35
protected
:
36
38
void
_Configure_
(const ::fcllite::PSet &pset);
39
41
larcv::ContourArray_t
_Process_
(
const
larcv::ContourArray_t
& clusters,
42
const ::cv::Mat& img,
43
larcv::ImageMeta
& meta);
44
45
private
:
46
47
std::vector<double>
_canny_params
;
48
49
};
50
55
class
ToyImageClusterFactory
:
public
ImageClusterFactoryBase
{
56
public
:
58
ToyImageClusterFactory
() {
ImageClusterFactory::get
().
add_factory
(
"ToyImageCluster"
,
this
); }
60
~ToyImageClusterFactory
() {}
62
ImageClusterBase
*
create
(
const
std::string instance_name) {
return
new
ToyImageCluster
(instance_name); }
63
};
65
static
ToyImageClusterFactory
__global_ToyImageClusterFactory__
;
66
}
67
#endif
68
// end of doxygen group
69
Generated on Wed Jan 27 2016 14:36:23 for LArOpenCV by
1.8.4