35 namespace SourceXtractor {
41 auto subtracted_image = detection_frame->getSubtractedImage();
42 auto thresholded_image = detection_frame->getThresholdedImage();
43 auto variance_map = detection_frame->getVarianceMap();
44 auto threshold_map = detection_frame->getDetectionThresholdMap();
47 auto min = boundaries.getMin();
48 auto max = boundaries.getMax();
63 auto width =
max.m_x - min.m_x +1;
64 auto height =
max.m_y - min.m_y + 1;
71 for (
auto x = min.m_x;
x <=
max.m_x; ++
x) {
72 for (
auto y = min.m_y;
y <=
max.m_y; ++
y) {
73 auto index = (
x-min.m_x) + (
y-min.m_y) * width;
74 data[index] = subtracted_image->getValue(
x,
y);
75 thresholded_data[index] = thresholded_image->getValue(
x,
y);
76 variance_data[index] = variance_map->getValue(
x,
y);
77 threshold_map_data[index] = threshold_map->getValue(
x,
y);
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y