SourceXtractorPlusPlus
0.10
Please provide a description of the project.
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::shared_ptr<SourceInterface>
>
MinAreaPartitionStep::partition
(
std::shared_ptr<SourceInterface>
source)
const
{
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
PixelCoordinateList.h
std::shared_ptr
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:30
SourceXtractor::MinAreaPartitionStep::partition
virtual std::vector< std::shared_ptr< SourceInterface > > partition(std::shared_ptr< SourceInterface > source) const override
Definition:
MinAreaPartitionStep.cpp:31
std::vector
STL class.
MinAreaPartitionStep.h
SourceXtractor::PixelCoordinateList::getCoordinateList
const std::vector< PixelCoordinate > & getCoordinateList() const
Definition:
PixelCoordinateList.h:40
Generated by
1.8.5