SourceXtractorPlusPlus
0.19
SourceXtractor++, the next generation SExtractor
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
src
lib
Partition
MinAreaPartitionStep.cpp
Go to the documentation of this file.
1
23
#include "
SEImplementation/Property/PixelCoordinateList.h
"
24
#include "
SEImplementation/Partition/MinAreaPartitionStep.h
"
25
26
namespace
SourceXtractor {
27
28
MinAreaPartitionStep::MinAreaPartitionStep
(
unsigned
int
min_pixel_count) : m_min_pixel_count (min_pixel_count) {
29
}
30
31
std::vector<std::unique_ptr<SourceInterface>
>
32
MinAreaPartitionStep::partition
(
std::unique_ptr<SourceInterface>
source)
const
{
33
std::vector<std::unique_ptr<SourceInterface>
> sources;
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
PixelCoordinateList.h
SourceXtractor::MinAreaPartitionStep::partition
std::vector< std::unique_ptr< SourceInterface > > partition(std::unique_ptr< SourceInterface > source) const override
Definition:
MinAreaPartitionStep.cpp:32
SourceXtractor::MinAreaPartitionStep::MinAreaPartitionStep
MinAreaPartitionStep(unsigned int min_pixel_count)
Constructor.
Definition:
MinAreaPartitionStep.cpp:28
SourceXtractor::MinAreaPartitionStep::m_min_pixel_count
unsigned int m_min_pixel_count
Definition:
MinAreaPartitionStep.h:49
SourceXtractor::PixelCoordinateList
Definition:
PixelCoordinateList.h:31
std::move
T move(T...args)
std::vector
STL class.
std::unique_ptr
STL class.
MinAreaPartitionStep.h
SourceXtractor::PixelCoordinateList::getCoordinateList
const std::vector< PixelCoordinate > & getCoordinateList() const
Definition:
PixelCoordinateList.h:41
std::vector::emplace_back
T emplace_back(T...args)
Generated by
1.8.5