SourceXtractorPlusPlus
0.10
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
SelectAllCriteria
select_all_criteria;
43
Observable<ProcessSourcesEvent>::notifyObservers
(
ProcessSourcesEvent
(select_all_criteria));
44
}
45
46
}
std::shared_ptr
STL class.
SourceXtractor::Segmentation::LabellingListener
Definition:
Segmentation.h:94
SourceXtractor::ProcessSourcesEvent
Event received by SourceGrouping to request the processing of some of the Sources stored.
Definition:
SourceGrouping.h:71
SourceXtractor::Segmentation::Segmentation
Segmentation(std::shared_ptr< DetectionImageFrame::ImageFilter > image_processing)
Definition:
Segmentation.cpp:27
SourceXtractor::Segmentation::m_filter_image_processing
std::shared_ptr< DetectionImageFrame::ImageFilter > m_filter_image_processing
Definition:
Segmentation.h:90
SourceXtractor::Segmentation::m_labelling
std::unique_ptr< Labelling > m_labelling
Definition:
Segmentation.h:89
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::Observable::notifyObservers
void notifyObservers(const T &message) const
Definition:
Observable.h:71
Segmentation.h
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::SelectAllCriteria
An implementation of SelectionCriteria that just marks all Sources as selected.
Definition:
SourceGrouping.h:58
Generated by
1.8.15