39 #ifndef _SEIMPLEMENTATION_PLUGIN_ATURATEFLAGSOURCETASK_H_
40 #define _SEIMPLEMENTATION_PLUGIN_ATURATEFLAGSOURCETASK_H_
50 namespace SourceXtractor {
64 const auto saturation = measurement_frame->getSaturation();
67 if (saturation > 0 && measurement_rectangle.getWidth()) {
69 auto image = measurement_frame->getOriginalImage();
70 auto stamp = image->getChunk(
71 measurement_rectangle.getTopLeft().m_x, measurement_rectangle.getTopLeft().m_y,
72 measurement_rectangle.getWidth(), measurement_rectangle.getHeight());
74 for (
int y = 0;
y < stamp->getHeight(); ++
y) {
75 for (
int x = 0;
x < stamp->getWidth(); ++
x) {
76 if (stamp->getValue(
x,
y) >= saturation) {
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y