SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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 <boost/random.hpp>
28
29
#include "
SEUtils/Types.h
"
30
31
#include "
SEImplementation/Property/PixelCoordinateList.h
"
32
#include "
SEFramework/Image/Image.h
"
33
#include "
SEFramework/Image/VectorImage.h
"
34
35
#include "
SEFramework/Pipeline/Partition.h
"
36
#include "
SEFramework/Source/SourceFactory.h
"
37
38
39
namespace
SourceXtractor
{
40
41
class
MultiThresholdNode
;
42
48
class
MultiThresholdPartitionStep
:
public
PartitionStep
{
49
50
public
:
51
52
MultiThresholdPartitionStep
(
std::shared_ptr<SourceFactory>
source_factory,
SeFloat
contrast,
53
unsigned
int
thresholds_nb,
unsigned
int
min_deblend_area,
unsigned
int
seed);
54
55
virtual
~MultiThresholdPartitionStep
() =
default
;
56
57
virtual
std::vector<std::unique_ptr<SourceInterface>
>
partition
(
std::unique_ptr<SourceInterface>
source)
const
;
58
59
private
:
60
std::vector<std::unique_ptr<SourceInterface>
>
reassignPixels
(
61
const
std::vector
<
std::unique_ptr<SourceInterface>
>& sources,
62
const
std::vector<PixelCoordinate>
& pixel_coords,
63
std::shared_ptr
<
VectorImage<DetectionImage::PixelType>
> image,
64
const
std::vector
<
std::shared_ptr<MultiThresholdNode>
>& source_nodes,
65
const
PixelCoordinate
& offset
66
)
const
;
67
68
std::shared_ptr<SourceFactory>
m_source_factory
;
69
SeFloat
m_contrast
;
70
unsigned
int
m_thresholds_nb
;
71
unsigned
int
m_min_deblend_area
;
72
unsigned
int
m_seed
;
73
boost::random::mt19937
m_rng
;
74
};
75
76
77
}
78
79
80
81
82
#endif
/* _SEIMPLEMENTATION_PARTITION_MULTITHRESHOLDPARTITIONSTEP_H_ */
Image.h
Partition.h
PixelCoordinateList.h
SourceFactory.h
Types.h
VectorImage.h
SourceXtractor::MultiThresholdNode
Definition
MultiThresholdPartitionStep.cpp:46
SourceXtractor::MultiThresholdPartitionStep::m_seed
unsigned int m_seed
Definition
MultiThresholdPartitionStep.h:72
SourceXtractor::MultiThresholdPartitionStep::m_thresholds_nb
unsigned int m_thresholds_nb
Definition
MultiThresholdPartitionStep.h:70
SourceXtractor::MultiThresholdPartitionStep::m_rng
boost::random::mt19937 m_rng
Definition
MultiThresholdPartitionStep.h:73
SourceXtractor::MultiThresholdPartitionStep::m_contrast
SeFloat m_contrast
Definition
MultiThresholdPartitionStep.h:69
SourceXtractor::MultiThresholdPartitionStep::~MultiThresholdPartitionStep
virtual ~MultiThresholdPartitionStep()=default
SourceXtractor::MultiThresholdPartitionStep::MultiThresholdPartitionStep
MultiThresholdPartitionStep(std::shared_ptr< SourceFactory > source_factory, SeFloat contrast, unsigned int thresholds_nb, unsigned int min_deblend_area, unsigned int seed)
Definition
MultiThresholdPartitionStep.cpp:353
SourceXtractor::MultiThresholdPartitionStep::m_min_deblend_area
unsigned int m_min_deblend_area
Definition
MultiThresholdPartitionStep.h:71
SourceXtractor::MultiThresholdPartitionStep::reassignPixels
std::vector< std::unique_ptr< SourceInterface > > reassignPixels(const std::vector< std::unique_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:254
SourceXtractor::MultiThresholdPartitionStep::partition
virtual std::vector< std::unique_ptr< SourceInterface > > partition(std::unique_ptr< SourceInterface > source) const
Definition
MultiThresholdPartitionStep.cpp:130
SourceXtractor::MultiThresholdPartitionStep::m_source_factory
std::shared_ptr< SourceFactory > m_source_factory
Definition
MultiThresholdPartitionStep.h:68
SourceXtractor::PartitionStep
A PartitionStep gets applied on a single Source and can result any number of Sources being outputed....
Definition
Partition.h:38
SourceXtractor::VectorImage
Image implementation which keeps the pixel values in memory.
Definition
VectorImage.h:52
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition
Types.h:32
std::shared_ptr
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition
PixelCoordinate.h:37
std::unique_ptr
std::vector
Generated by
1.14.0