|
29 | 29 | #include <mutex> |
30 | 30 |
|
31 | 31 | #include "AlexandriaKernel/memory_tools.h" |
32 | | -#include "SEImplementation/Plugin/Psf/PsfProperty.h" |
33 | 32 | #include "SEImplementation/Plugin/MoffatModelFitting/MoffatModelFitting.h" |
34 | 33 | #include "SEImplementation/Plugin/MoffatModelFitting/MoffatModelFittingTask.h" |
35 | 34 | #include "ElementsKernel/PathSearch.h" |
@@ -260,16 +259,16 @@ void MoffatModelFittingTask::computeProperties(SourceInterface& source) const { |
260 | 259 | { |
261 | 260 |
|
262 | 261 | // renders an image of the model for a single source with the final parameters |
263 | | - std::vector<std::shared_ptr<ModelFitting::ExtendedModel<ImageInterfaceTypePtr>>> extended_models{}; |
264 | | - std::vector<PointModel> point_models{}; |
265 | | - std::vector<ConstantModel> constant_models{}; |
266 | | - source_model->createModels(extended_models, point_models); |
| 262 | + std::vector<std::shared_ptr<ModelFitting::ExtendedModel<ImageInterfaceTypePtr>>> tmp_extended_models{}; |
| 263 | + std::vector<PointModel> tmp_point_models{}; |
| 264 | + std::vector<ConstantModel> tmp_constant_models{}; |
| 265 | + source_model->createModels(tmp_extended_models, tmp_point_models); |
267 | 266 | FrameModel<NullPsf<VectorImageType>, VectorImageType> frame_model_after{1, |
268 | 267 | (size_t)source_stamp.getWidth(), |
269 | 268 | (size_t)source_stamp.getHeight(), |
270 | | - std::move(constant_models), |
271 | | - std::move(point_models), |
272 | | - std::move(extended_models)}; |
| 269 | + std::move(tmp_constant_models), |
| 270 | + std::move(tmp_point_models), |
| 271 | + std::move(tmp_extended_models)}; |
273 | 272 | auto final_image = frame_model_after.getImage(); |
274 | 273 |
|
275 | 274 | // integrates the flux for that source |
|
0 commit comments