SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
ModelFitting::FrameModelPsfContextContainer< PsfType > Class Template Reference

#include <FrameModel.h>

Inheritance diagram for ModelFitting::FrameModelPsfContextContainer< PsfType >:
[legend]
Collaboration diagram for ModelFitting::FrameModelPsfContextContainer< PsfType >:
[legend]

Public Member Functions

 FrameModelPsfContextContainer (std::size_t n_extended_models)
 
 FrameModelPsfContextContainer (PsfType psf, std::size_t n_extended_models)
 
template<typename ImageType >
void convolve (size_t i, ImageType &image)
 

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.

◆ 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.

Member Function Documentation

◆ convolve()

template<typename PsfType >
template<typename ImageType >
void ModelFitting::FrameModelPsfContextContainer< PsfType >::convolve ( size_t  i,
ImageType &  image 
)
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 ModelFitting::FrameModelPsfContextContainer< PsfType >::m_psf_contexts.

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 file: