SourceXtractorPlusPlus
0.13
Please provide a description of the project.
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
SourceXtractor::PixelCoordinateList
Definition:
PixelCoordinateList.h:31
SourceXtractor::MinAreaPartitionStep::m_min_pixel_count
unsigned int m_min_pixel_count
Definition:
MinAreaPartitionStep.h:49
std::shared_ptr
STL class.
std::vector
STL class.
SourceXtractor::PixelCoordinateList::getCoordinateList
const std::vector< PixelCoordinate > & getCoordinateList() const
Definition:
PixelCoordinateList.h:41
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::MinAreaPartitionStep::MinAreaPartitionStep
MinAreaPartitionStep(unsigned int min_pixel_count)
Constructor.
Definition:
MinAreaPartitionStep.cpp:28
MinAreaPartitionStep.h
SourceXtractor::MinAreaPartitionStep::partition
virtual std::vector< std::shared_ptr< SourceInterface > > partition(std::shared_ptr< SourceInterface > source) const override
Definition:
MinAreaPartitionStep.cpp:31
Generated by
1.8.20