27 namespace SourceXtractor {
38 const auto& default_psf = psf_config.getPsf();
41 for (
unsigned int i = 0; i < image_infos.size(); i++) {
42 if (!image_infos[i].m_psf_path.empty()) {
45 else if (default_psf) {
46 m_vpsf[image_infos[i].m_id] = default_psf;
50 for (
auto& vpsf :
m_vpsf) {
52 throw Elements::Exception() <<
"Missing PSF. Make sure every frame has a PSF, or that there is a valid default PSF";
58 auto instance = property_id.
getIndex();
65 return std::make_shared<PsfTask>(instance,
m_vpsf.at(instance));
void registerConfiguration()