SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEFramework
src
lib
Pipeline
Segmentation.cpp
Go to the documentation of this file.
1
22
23
#include "
SEFramework/Pipeline/Segmentation.h
"
24
25
namespace
SourceXtractor
{
26
27
Segmentation::Segmentation
(
std::shared_ptr<DetectionImageFrame::ImageFilter>
image_processing)
28
:
m_filter_image_processing
(image_processing) {
29
}
30
31
void
Segmentation::processFrame
(
std::shared_ptr<DetectionImageFrame>
frame)
const
{
32
if
(
m_filter_image_processing
!=
nullptr
&& frame !=
nullptr
) {
33
frame->setFilter(
m_filter_image_processing
);
34
}
35
36
if
(
m_labelling
!=
nullptr
) {
37
LabellingListener
listener(*
this
, frame);
38
m_labelling
->labelImage(listener, frame);
39
}
40
41
// Flush source grouping buffer
42
sendProcessSignal
(
ProcessSourcesEvent
(
std::make_shared<SelectAllCriteria>
()));
43
}
44
45
}
Segmentation.h
SourceXtractor::PipelineEmitter< SourceInterface >::sendProcessSignal
void sendProcessSignal(const ProcessSourcesEvent &event) const
Definition
PipelineStage.h:92
SourceXtractor::Segmentation::LabellingListener
Definition
Segmentation.h:83
SourceXtractor::Segmentation::m_filter_image_processing
std::shared_ptr< DetectionImageFrame::ImageFilter > m_filter_image_processing
Definition
Segmentation.h:79
SourceXtractor::Segmentation::Segmentation
Segmentation(std::shared_ptr< DetectionImageFrame::ImageFilter > image_processing)
Definition
Segmentation.cpp:27
SourceXtractor::Segmentation::processFrame
void processFrame(std::shared_ptr< DetectionImageFrame > frame) const
Processes a Frame notifying Observers with a Source object for each detection.
Definition
Segmentation.cpp:31
SourceXtractor::Segmentation::m_labelling
std::unique_ptr< Labelling > m_labelling
Definition
Segmentation.h:78
std::make_shared
T make_shared(T... args)
SourceXtractor
Definition
Aperture.h:30
std::shared_ptr
SourceXtractor::ProcessSourcesEvent
Event received by SourceGrouping to request the processing of some of the Sources stored.
Definition
PipelineStage.h:33
Generated by
1.15.0