SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ModelFitting::FrameModelPsfContextContainer< PsfType > Class Template Reference

#include <FrameModel.h>

Inheritance diagram for ModelFitting::FrameModelPsfContextContainer< PsfType >:
Collaboration diagram for ModelFitting::FrameModelPsfContextContainer< PsfType >:

Public Member Functions

 FrameModelPsfContextContainer (std::size_t n_extended_models)
 FrameModelPsfContextContainer (PsfType psf, std::size_t n_extended_models)
template<typename... Args>
void convolve (size_t i, Args &&... args)

Private Attributes

std::vector< typename PsfTraits< PsfType >::context_t > m_psf_contexts

Detailed Description

template<typename PsfType>
class ModelFitting::FrameModelPsfContextContainer< PsfType >

Adapter class for PSF types that have the concept of a context: values that can be computed only once (see prepare method on PSF types)

Template Parameters
PsfTypeThe wrapped PSF type

Definition at line 82 of file FrameModel.h.

Constructor & Destructor Documentation

◆ FrameModelPsfContextContainer() [1/2]

template<typename PsfType>
ModelFitting::FrameModelPsfContextContainer< PsfType >::FrameModelPsfContextContainer ( std::size_t n_extended_models)

Constructor

Parameters
n_extended_modelsOnly extended models are convolved. Allocate4 enough space for this number of contexts.

Definition at line 32 of file FrameModel.icpp.

References m_psf_contexts.

◆ FrameModelPsfContextContainer() [2/2]

template<typename PsfType>
ModelFitting::FrameModelPsfContextContainer< PsfType >::FrameModelPsfContextContainer ( PsfType psf,
std::size_t n_extended_models )

Constructor

Parameters
psfWrapped PSF
n_extended_modelsOnly extended models are convolved. Allocate4 enough space for this number of contexts.

Definition at line 36 of file FrameModel.icpp.

References m_psf_contexts, and std::move().

Here is the call graph for this function:

Member Function Documentation

◆ convolve()

template<typename PsfType>
template<typename... Args>
void ModelFitting::FrameModelPsfContextContainer< PsfType >::convolve ( size_t i,
Args &&... args )
inline

Wrap the call to the underlying PSF prepare/convolve methods

Template Parameters
ImageTypeThe type of the image to be convolved. It has to be readable/writable
Parameters
iThe index of the model, which is used to retrieve the associated context
imageThe image to convolve

Definition at line 111 of file FrameModel.h.

References std::forward(), m_psf_contexts, and std::move().

Here is the call graph for this function:

Member Data Documentation

◆ m_psf_contexts

template<typename PsfType>
std::vector<typename PsfTraits<PsfType>::context_t> ModelFitting::FrameModelPsfContextContainer< PsfType >::m_psf_contexts
private

The documentation for this class was generated from the following files: