SourceXtractorPlusPlus  0.11
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DetectionIdCheckImage.cpp
Go to the documentation of this file.
1 
17 /*
18  * DetectionIdCheckImage.cpp
19  *
20  * Created on: Jun 25, 2018
21  * Author: mschefer
22  */
23 
27 
29 
30 namespace SourceXtractor {
31 
33  if (m_check_image) {
35 
36  auto coordinates = source->getProperty<PixelCoordinateList>();
37 
38  // get the ID for each detected source
39  const auto& source_id = source->getProperty<SourceId>().getDetectionId();
40 
41  // iterate over the pixels and set the detection_id value
42  for (auto& coord : coordinates.getCoordinateList()) {
43  m_check_image->setValue(coord.m_x, coord.m_y, source_id);
44  }
45  }
46 }
47 
48 }
std::shared_ptr< WriteableImage< unsigned int > > m_check_image
static CheckImages & getInstance()
Definition: CheckImages.h:114
T lock(T...args)
virtual void handleMessage(const std::shared_ptr< SourceInterface > &source)