SourceXtractorPlusPlus  0.16
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::DownSampledImagePsf Class Reference

#include <DownSampledImagePsf.h>

Collaboration diagram for SourceXtractor::DownSampledImagePsf:
[legend]

Public Member Functions

 DownSampledImagePsf (double pixel_scale, std::shared_ptr< VectorImage< SeFloat >> image, double down_scaling=1.0)
 
virtual ~DownSampledImagePsf ()=default
 
double getPixelScale () const
 
std::size_t getSize () const
 
std::shared_ptr< VectorImage< SourceXtractor::SeFloat > > getScaledKernel (SeFloat scale) const
 
void convolve (std::shared_ptr< WriteableImage< float >> image) const
 
std::unique_ptr< DFTConvolution< SeFloat >::ConvolutionContext > prepare (const std::shared_ptr< const Image< SeFloat >> &model_ptr) const
 
void convolve (std::shared_ptr< WriteableImage< float >> image, std::unique_ptr< DFTConvolution< SeFloat >::ConvolutionContext > &context) const
 

Private Attributes

double m_down_scaling
 
std::shared_ptr< ImagePsfm_psf
 

Detailed Description

Definition at line 41 of file DownSampledImagePsf.h.

Constructor & Destructor Documentation

◆ DownSampledImagePsf()

SourceXtractor::DownSampledImagePsf::DownSampledImagePsf ( double  pixel_scale,
std::shared_ptr< VectorImage< SeFloat >>  image,
double  down_scaling = 1.0 
)

Definition at line 32 of file DownSampledImagePsf.cpp.

References std::accumulate(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::addImageToImage(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::factory(), m_psf, and pixel_scale.

Here is the call graph for this function:

◆ ~DownSampledImagePsf()

virtual SourceXtractor::DownSampledImagePsf::~DownSampledImagePsf ( )
virtualdefault

Member Function Documentation

◆ convolve() [1/2]

void SourceXtractor::DownSampledImagePsf::convolve ( std::shared_ptr< WriteableImage< float >>  image) const

Definition at line 78 of file DownSampledImagePsf.cpp.

References m_psf.

◆ convolve() [2/2]

void SourceXtractor::DownSampledImagePsf::convolve ( std::shared_ptr< WriteableImage< float >>  image,
std::unique_ptr< DFTConvolution< SeFloat >::ConvolutionContext > &  context 
) const

Definition at line 87 of file DownSampledImagePsf.cpp.

References m_psf.

◆ getPixelScale()

double SourceXtractor::DownSampledImagePsf::getPixelScale ( ) const

Definition at line 66 of file DownSampledImagePsf.cpp.

References m_psf.

◆ getScaledKernel()

std::shared_ptr< VectorImage< SourceXtractor::SeFloat > > SourceXtractor::DownSampledImagePsf::getScaledKernel ( SeFloat  scale) const

Definition at line 74 of file DownSampledImagePsf.cpp.

References m_psf.

◆ getSize()

std::size_t SourceXtractor::DownSampledImagePsf::getSize ( ) const

Definition at line 70 of file DownSampledImagePsf.cpp.

References m_psf.

◆ prepare()

std::unique_ptr< DFTConvolution< SeFloat >::ConvolutionContext > SourceXtractor::DownSampledImagePsf::prepare ( const std::shared_ptr< const Image< SeFloat >> &  model_ptr) const

Definition at line 82 of file DownSampledImagePsf.cpp.

References m_psf.

Member Data Documentation

◆ m_down_scaling

double SourceXtractor::DownSampledImagePsf::m_down_scaling
private

Definition at line 58 of file DownSampledImagePsf.h.

◆ m_psf

std::shared_ptr<ImagePsf> SourceXtractor::DownSampledImagePsf::m_psf
private

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