Skip to content

Commit b7d15e1

Browse files
committed
Remove getModelFittingCheckImage in Moffat
Superseeded by getMoffatImage + MoffatCheckImage
1 parent d9376b6 commit b7d15e1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

SEImplementation/src/lib/Plugin/MoffatModelFitting/MoffatModelFittingTask.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@
5757
#include "SEImplementation/Plugin/IsophotalFlux/IsophotalFlux.h"
5858
#include "SEFramework/Property/DetectionFrame.h"
5959

60-
#include "SEImplementation/CheckImages/CheckImages.h"
61-
62-
#include "SEFramework/Property/DetectionFrame.h"
63-
6460
#include "SEImplementation/Image/VectorImageDataVsModelInputTraits.h"
6561

6662
#include "SEImplementation/Measurement/MultithreadedMeasurement.h"
@@ -229,7 +225,6 @@ void MoffatModelFittingTask::computeProperties(SourceInterface& source) const {
229225
size_t iterations = (size_t) boost::any_cast<std::array<double,10>>(solution.underlying_framework_info)[5];
230226

231227
auto final_stamp = VectorImage<SeFloat>::create(source_stamp.getWidth(), source_stamp.getHeight());
232-
auto check_image = CheckImages::getInstance().getModelFittingCheckImage();
233228

234229
{
235230

@@ -253,13 +248,6 @@ void MoffatModelFittingTask::computeProperties(SourceInterface& source) const {
253248
// build final stamp
254249
final_stamp->setValue(x, y, final_stamp->getValue(x, y) + final_image->getValue(x, y));
255250

256-
// if requested, updates a check image made by adding all source models
257-
if (check_image) {
258-
CheckImages::getInstance().lock();
259-
check_image->setValue(pixel.m_x, pixel.m_y, check_image->getValue(pixel) + final_image->getValue(x, y));
260-
CheckImages::getInstance().unlock();
261-
}
262-
263251
total_flux += final_image->getValue(x, y);
264252
}
265253
}

0 commit comments

Comments
 (0)