SourceXtractorPlusPlus  0.13
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Segmentation.cpp
Go to the documentation of this file.
1 
24 
25 namespace SourceXtractor {
26 
28  : m_filter_image_processing(image_processing) {
29 }
30 
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 }
void notifyObservers(const T &message) const
Definition: Observable.h:71
Event received by SourceGrouping to request the processing of some of the Sources stored...
Segmentation(std::shared_ptr< DetectionImageFrame::ImageFilter > image_processing)
std::shared_ptr< DetectionImageFrame::ImageFilter > m_filter_image_processing
Definition: Segmentation.h:90
std::unique_ptr< Labelling > m_labelling
Definition: Segmentation.h:89
void processFrame(std::shared_ptr< DetectionImageFrame > frame) const
Processes a Frame notifying Observers with a Source object for each detection.