SourceXtractorPlusPlus
0.13
Please provide a description of the project.
SEFramework
src
lib
Pipeline
Segmentation.cpp
Go to the documentation of this file.
1
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
) {
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
Observable<ProcessSourcesEvent>::notifyObservers
(
ProcessSourcesEvent
(std::make_shared<SelectAllCriteria>()));
43
}
44
45
}
SourceXtractor::Observable::notifyObservers
void notifyObservers(const T &message) const
Definition:
Observable.h:71
std::shared_ptr
STL class.
SourceXtractor::ProcessSourcesEvent
Event received by SourceGrouping to request the processing of some of the Sources stored.
Definition:
SourceGrouping.h:71
SourceXtractor::Segmentation::m_labelling
std::unique_ptr< Labelling > m_labelling
Definition:
Segmentation.h:89
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
Definition:
Aperture.h:30
SourceXtractor::Segmentation::Segmentation
Segmentation(std::shared_ptr< DetectionImageFrame::ImageFilter > image_processing)
Definition:
Segmentation.cpp:27
SourceXtractor::Segmentation::LabellingListener
Definition:
Segmentation.h:94
Segmentation.h
SourceXtractor::Segmentation::m_filter_image_processing
std::shared_ptr< DetectionImageFrame::ImageFilter > m_filter_image_processing
Definition:
Segmentation.h:90
Generated by
1.8.20