SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GroupIdCheckImage.cpp
Go to the documentation of this file.
1 
17 /*
18  * GroupIdCheckImage.cpp
19  *
20  * Created on: 2019 M01 30
21  * Author: mschefer
22  */
23 
25 
29 
31 
32 namespace SourceXtractor {
33 
35  if (m_check_image) {
36  // get the ID of the group
37  auto group_id = group->getProperty<GroupInfo>().getGroupId();
38 
40 
41  for (auto& source : *group) {
42  auto& coordinates = source.getProperty<PixelCoordinateList>();
43 
44  // iterate over the pixels and set the group_id value
45  for (auto& coord : coordinates.getCoordinateList()) {
46  m_check_image->setValue(coord.m_x, coord.m_y, group_id);
47  }
48  }
49 
51  }
52 }
53 
54 }
55 
static CheckImages & getInstance()
Definition: CheckImages.h:114
std::shared_ptr< WriteableImage< unsigned int > > m_check_image
virtual void handleMessage(const std::shared_ptr< SourceGroupInterface > &group)