SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MinAreaPartitionStep.cpp
Go to the documentation of this file.
1 
25 
26 namespace SourceXtractor {
27 
28 MinAreaPartitionStep::MinAreaPartitionStep(unsigned int min_pixel_count) : m_min_pixel_count (min_pixel_count) {
29 }
30 
32  if (source->getProperty<PixelCoordinateList>().getCoordinateList().size() < m_min_pixel_count) {
33  return {};
34  } else {
35  return { source };
36  }
37 }
38 
39 } // SEImplementation namespace
40 
MinAreaPartitionStep(unsigned int min_pixel_count)
Constructor.
virtual std::vector< std::shared_ptr< SourceInterface > > partition(std::shared_ptr< SourceInterface > source) const override
STL class.
const std::vector< PixelCoordinate > & getCoordinateList() const