SourceXtractorPlusPlus
0.11
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
SEImplementation
Partition
MultiThresholdPartitionStep.h
Go to the documentation of this file.
1
17
/*
18
* MultiThresholdPartitionStep.h
19
*
20
* Created on: Jan 17, 2017
21
* Author: mschefer
22
*/
23
24
#ifndef _SEIMPLEMENTATION_PARTITION_MULTITHRESHOLDPARTITIONSTEP_H_
25
#define _SEIMPLEMENTATION_PARTITION_MULTITHRESHOLDPARTITIONSTEP_H_
26
27
#include "
SEUtils/Types.h
"
28
29
#include "
SEImplementation/Property/PixelCoordinateList.h
"
30
#include "
SEFramework/Image/Image.h
"
31
#include "
SEFramework/Image/VectorImage.h
"
32
33
#include "
SEFramework/Pipeline/Partition.h
"
34
#include "
SEFramework/Source/SourceFactory.h
"
35
36
37
namespace
SourceXtractor {
38
39
class
MultiThresholdNode;
40
46
class
MultiThresholdPartitionStep
:
public
PartitionStep
{
47
48
public
:
49
50
MultiThresholdPartitionStep
(
std::shared_ptr<SourceFactory>
source_factory,
SeFloat
contrast,
51
unsigned
int
thresholds_nb,
unsigned
int
min_deblend_area) :
52
m_source_factory
(source_factory),
m_contrast
(contrast),
m_thresholds_nb
(thresholds_nb),
m_min_deblend_area
(min_deblend_area) {}
53
54
virtual
~MultiThresholdPartitionStep
() =
default
;
55
56
virtual
std::vector<std::shared_ptr<SourceInterface>
>
partition
(
std::shared_ptr<SourceInterface>
source)
const
;
57
58
private
:
59
std::vector<std::shared_ptr<SourceInterface>
>
reassignPixels
(
60
const
std::vector
<
std::shared_ptr<SourceInterface>
>& sources,
61
const
std::vector<PixelCoordinate>
& pixel_coords,
62
std::shared_ptr
<
VectorImage<DetectionImage::PixelType>
> image,
63
const
std::vector
<
std::shared_ptr<MultiThresholdNode>
>& source_nodes,
64
const
PixelCoordinate
& offset
65
)
const
;
66
67
std::shared_ptr<SourceFactory>
m_source_factory
;
68
SeFloat
m_contrast
;
69
unsigned
int
m_thresholds_nb
;
70
unsigned
int
m_min_deblend_area
;
71
};
72
73
74
}
75
76
77
78
79
#endif
/* _SEIMPLEMENTATION_PARTITION_MULTITHRESHOLDPARTITIONSTEP_H_ */
PixelCoordinateList.h
SourceXtractor::MultiThresholdPartitionStep::m_source_factory
std::shared_ptr< SourceFactory > m_source_factory
Definition:
MultiThresholdPartitionStep.h:67
std::shared_ptr< SourceFactory >
Types.h
SourceXtractor::MultiThresholdPartitionStep::partition
virtual std::vector< std::shared_ptr< SourceInterface > > partition(std::shared_ptr< SourceInterface > source) const
Definition:
MultiThresholdPartitionStep.cpp:126
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
SourceXtractor::MultiThresholdPartitionStep
Definition:
MultiThresholdPartitionStep.h:46
SourceXtractor::MultiThresholdPartitionStep::m_min_deblend_area
unsigned int m_min_deblend_area
Definition:
MultiThresholdPartitionStep.h:70
Image.h
SourceXtractor::MultiThresholdPartitionStep::m_thresholds_nb
unsigned int m_thresholds_nb
Definition:
MultiThresholdPartitionStep.h:69
SourceXtractor::VectorImage
Image implementation which keeps the pixel values in memory.
Definition:
VectorImage.h:53
SourceXtractor::PartitionStep
A PartitionStep gets applied on a single Source and can result any number of Sources being outputed...
Definition:
Partition.h:37
VectorImage.h
SourceXtractor::MultiThresholdPartitionStep::m_contrast
SeFloat m_contrast
Definition:
MultiThresholdPartitionStep.h:68
SourceXtractor::MultiThresholdPartitionStep::MultiThresholdPartitionStep
MultiThresholdPartitionStep(std::shared_ptr< SourceFactory > source_factory, SeFloat contrast, unsigned int thresholds_nb, unsigned int min_deblend_area)
Definition:
MultiThresholdPartitionStep.h:50
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition:
PixelCoordinate.h:37
SourceXtractor::MultiThresholdPartitionStep::reassignPixels
std::vector< std::shared_ptr< SourceInterface > > reassignPixels(const std::vector< std::shared_ptr< SourceInterface >> &sources, const std::vector< PixelCoordinate > &pixel_coords, std::shared_ptr< VectorImage< DetectionImage::PixelType >> image, const std::vector< std::shared_ptr< MultiThresholdNode >> &source_nodes, const PixelCoordinate &offset) const
Definition:
MultiThresholdPartitionStep.cpp:250
SourceXtractor::MultiThresholdPartitionStep::~MultiThresholdPartitionStep
virtual ~MultiThresholdPartitionStep()=default
std::vector
STL class.
Partition.h
SourceFactory.h
Generated by
1.8.5