SourceXtractorPlusPlus  0.11
Please provide a description of the project.
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  SelectAllCriteria select_all_criteria;
44 }
45 
46 }
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::SelectAllCriteria
An implementation of SelectionCriteria that just marks all Sources as selected.
Definition: SourceGrouping.h:58
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