SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::DownSampledImagePsf Class Reference

#include <DownSampledImagePsf.h>

Collaboration diagram for SourceXtractor::DownSampledImagePsf:

Public Member Functions

 DownSampledImagePsf (double pixel_scale, std::shared_ptr< VectorImage< SeFloat > > image, double down_scaling=1.0, bool normalize_psf=true)
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
bool m_normalize_psf { true }

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,
bool normalize_psf = true )

Definition at line 32 of file DownSampledImagePsf.cpp.

References std::accumulate(), m_down_scaling, m_normalize_psf, m_psf, std::make_shared(), 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 102 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 117 of file DownSampledImagePsf.cpp.

References m_psf.

◆ getPixelScale()

double SourceXtractor::DownSampledImagePsf::getPixelScale ( ) const

Definition at line 78 of file DownSampledImagePsf.cpp.

References m_psf.

◆ getScaledKernel()

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

Definition at line 94 of file DownSampledImagePsf.cpp.

References m_psf.

◆ getSize()

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

Definition at line 86 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 108 of file DownSampledImagePsf.cpp.

References m_psf.

Member Data Documentation

◆ m_down_scaling

double SourceXtractor::DownSampledImagePsf::m_down_scaling
private

Definition at line 60 of file DownSampledImagePsf.h.

Referenced by DownSampledImagePsf().

◆ m_normalize_psf

bool SourceXtractor::DownSampledImagePsf::m_normalize_psf { true }
private

Definition at line 62 of file DownSampledImagePsf.h.

Referenced by DownSampledImagePsf().

◆ m_psf

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

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