SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
MinAreaPartitionStep.cpp
Go to the documentation of this file.
1
22#include <iostream>
23
26
27namespace SourceXtractor {
28
29MinAreaPartitionStep::MinAreaPartitionStep(unsigned int min_pixel_count) : m_min_pixel_count (min_pixel_count) {
30}
31
35 auto& pixel_coordinate_list = source->getProperty<PixelCoordinateList>();
36 if (pixel_coordinate_list.getCoordinateList().size() >= m_min_pixel_count) {
37 sources.emplace_back(std::move(source));
38 }
39 return sources;
40}
41
42} // SEImplementation namespace
43
std::vector< std::unique_ptr< SourceInterface > > partition(std::unique_ptr< SourceInterface > source) const override
MinAreaPartitionStep(unsigned int min_pixel_count)
Constructor.
T emplace_back(T... args)
T move(T... args)