SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
Vignet
VignetArraySourceTask.cpp
Go to the documentation of this file.
1
18
#include "
SEImplementation/Plugin/Vignet/Vignet.h
"
19
#include "
SEImplementation/Plugin/Vignet/VignetArray.h
"
20
#include "
SEImplementation/Plugin/Vignet/VignetArraySourceTask.h
"
21
22
namespace
SourceXtractor
{
23
24
VignetArraySourceTask::VignetArraySourceTask
(
const
std::vector<unsigned>
images
): m_images{
images
} {
25
}
26
27
void
VignetArraySourceTask::computeProperties
(
SourceInterface
&
source
)
const
{
28
std::vector<std::reference_wrapper<const Vignet>
>
vignets
;
29
for
(
auto
img_idx
:
m_images
) {
30
vignets
.emplace_back(
source
.getProperty<
Vignet
>(
img_idx
));
31
}
32
source
.setProperty<
VignetArray
>(
vignets
);
33
}
34
35
}
// end of namespace SourceXtractor
VignetArraySourceTask.h
VignetArray.h
Vignet.h
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition
SourceInterface.h:46
SourceXtractor::VignetArraySourceTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition
VignetArraySourceTask.cpp:27
SourceXtractor::VignetArraySourceTask::VignetArraySourceTask
VignetArraySourceTask(const std::vector< unsigned > images)
Definition
VignetArraySourceTask.cpp:24
SourceXtractor::VignetArraySourceTask::m_images
std::vector< unsigned > m_images
Definition
VignetArraySourceTask.h:34
SourceXtractor::VignetArray
Definition
VignetArray.h:29
SourceXtractor::Vignet
Definition
Vignet.h:33
std::function
SourceXtractor
Definition
Aperture.h:30
Generated by
1.10.0