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