SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Segmentation
AssocSegmentation.cpp
Go to the documentation of this file.
1
17
18
19
#include "
SEImplementation/Property/PixelCoordinateList.h
"
20
#include "
SEImplementation/Property/SourceId.h
"
21
#include "
SEImplementation/Plugin/PixelCentroid/PixelCentroid.h
"
22
#include "
SEImplementation/Plugin/AssocMode/AssocMode.h
"
23
#include "
SEImplementation/Plugin/WorldCentroid/WorldCentroid.h
"
24
25
#include "
SEImplementation/Segmentation/AssocSegmentation.h
"
26
27
namespace
SourceXtractor
{
28
29
void
AssocSegmentation::labelImage
(
Segmentation::LabellingListener
& listener,
std::shared_ptr<const DetectionImageFrame>
) {
30
for
(
auto
source_coordinate :
m_source_list
) {
31
auto
source =
m_source_factory
->createSource();
32
source->setProperty<
SourceId
>();
33
source->setProperty<
WorldCentroid
>(source_coordinate.world_coord.m_alpha, source_coordinate.world_coord.m_delta);
34
source->setProperty<
AssocMode
>(
true
, source_coordinate.assoc_columns,
35
source_coordinate.source_pixel_width, source_coordinate.source_pixel_height, source_coordinate.group_id);
36
37
listener.
publishSource
(
std::move
(source));
38
}
39
}
40
41
}
AssocMode.h
AssocSegmentation.h
PixelCentroid.h
PixelCoordinateList.h
SourceId.h
WorldCentroid.h
SourceXtractor::AssocMode
Definition
AssocMode.h:33
SourceXtractor::AssocSegmentation::m_source_factory
std::shared_ptr< SourceFactory > m_source_factory
Definition
AssocSegmentation.h:38
SourceXtractor::AssocSegmentation::m_source_list
std::vector< AssocModeConfig::CatalogEntry > m_source_list
Definition
AssocSegmentation.h:39
SourceXtractor::AssocSegmentation::labelImage
void labelImage(Segmentation::LabellingListener &listener, std::shared_ptr< const DetectionImageFrame > frame) override
Definition
AssocSegmentation.cpp:29
SourceXtractor::Segmentation::LabellingListener
Definition
Segmentation.h:83
SourceXtractor::Segmentation::LabellingListener::publishSource
void publishSource(std::unique_ptr< SourceInterface > source) const
Definition
Segmentation.h:89
SourceXtractor::SourceId
Definition
SourceId.h:32
SourceXtractor::WorldCentroid
Definition
WorldCentroid.h:33
std::move
T move(T... args)
SourceXtractor
Definition
Aperture.h:30
std::shared_ptr
Generated by
1.15.0