SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::TypedSplineModelWrapper< T > Class Template Referencefinal

#include <TypedSplineModelWrapper.h>

Inheritance diagram for SourceXtractor::TypedSplineModelWrapper< T >:
[legend]
Collaboration diagram for SourceXtractor::TypedSplineModelWrapper< T >:
[legend]

Public Member Functions

virtual ~TypedSplineModelWrapper ()
 
std::string getRepr () const override
 Human readable representation. More...
 
getValue (int x, int y) const
 Returns the value of the pixel with the coordinates (x,y) More...
 
int getWidth () const override
 Returns the width of the image in pixels. More...
 
int getHeight () const override
 Returns the height of the image in pixels. More...
 
getMedian () const
 Returns the median of the spline. More...
 
std::shared_ptr< ImageTilegetImageTile (int x, int y, int width, int height) const override
 
void gridToFits (boost::filesystem::path path) const
 
void saveTile (ImageTile &) override
 
ImageTile::ImageType getType () const override
 
- Public Member Functions inherited from SourceXtractor::ImageSource
 ImageSource ()
 
virtual ~ImageSource ()=default
 
virtual const std::map< std::string, MetadataEntrygetMetadata () const
 
virtual void setMetadata (std::string, MetadataEntry)
 

Static Public Member Functions

static std::shared_ptr< TypedSplineModelWrapper< T > > create (const size_t *naxes, const size_t *gridCellSize, const size_t *nGrid, PIXTYPE *gridData)
 

Private Member Functions

 TypedSplineModelWrapper (const size_t *naxes, const size_t *gridCellSize, const size_t *nGrid, PIXTYPE *gridData)
 

Private Attributes

SplineModelm_spline_model =nullptr
 

Detailed Description

template<typename T>
class SourceXtractor::TypedSplineModelWrapper< T >

Definition at line 35 of file TypedSplineModelWrapper.h.

Constructor & Destructor Documentation

◆ ~TypedSplineModelWrapper()

template<typename T >
virtual SourceXtractor::TypedSplineModelWrapper< T >::~TypedSplineModelWrapper ( )
inlinevirtual

◆ TypedSplineModelWrapper()

template<typename T >
SourceXtractor::TypedSplineModelWrapper< T >::TypedSplineModelWrapper ( const size_t naxes,
const size_t gridCellSize,
const size_t nGrid,
PIXTYPE gridData 
)
inlineprivate

Member Function Documentation

◆ create()

template<typename T >
static std::shared_ptr<TypedSplineModelWrapper<T> > SourceXtractor::TypedSplineModelWrapper< T >::create ( const size_t naxes,
const size_t gridCellSize,
const size_t nGrid,
PIXTYPE gridData 
)
inlinestatic

Definition at line 49 of file TypedSplineModelWrapper.h.

◆ getHeight()

template<typename T >
int SourceXtractor::TypedSplineModelWrapper< T >::getHeight ( ) const
inlineoverridevirtual

Returns the height of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 69 of file TypedSplineModelWrapper.h.

References SourceXtractor::SplineModel::getNaxes(), and SourceXtractor::TypedSplineModelWrapper< T >::m_spline_model.

Here is the call graph for this function:

◆ getImageTile()

template<typename T >
std::shared_ptr<ImageTile> SourceXtractor::TypedSplineModelWrapper< T >::getImageTile ( int  x,
int  y,
int  width,
int  height 
) const
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 78 of file TypedSplineModelWrapper.h.

References SourceXtractor::ImageTile::create(), SourceXtractor::ImageTile::getTypeValue(), SourceXtractor::TypedSplineModelWrapper< T >::getValue(), x, and y.

Here is the call graph for this function:

◆ getMedian()

template<typename T >
T SourceXtractor::TypedSplineModelWrapper< T >::getMedian ( ) const
inline

Returns the median of the spline.

Definition at line 74 of file TypedSplineModelWrapper.h.

References SourceXtractor::SplineModel::getMedian(), and SourceXtractor::TypedSplineModelWrapper< T >::m_spline_model.

Here is the call graph for this function:

◆ getRepr()

template<typename T >
std::string SourceXtractor::TypedSplineModelWrapper< T >::getRepr ( ) const
inlineoverridevirtual

Human readable representation.

Implements SourceXtractor::ImageSource.

Definition at line 54 of file TypedSplineModelWrapper.h.

◆ getType()

template<typename T >
ImageTile::ImageType SourceXtractor::TypedSplineModelWrapper< T >::getType ( ) const
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 100 of file TypedSplineModelWrapper.h.

References SourceXtractor::ImageTile::getTypeValue().

Here is the call graph for this function:

◆ getValue()

template<typename T >
T SourceXtractor::TypedSplineModelWrapper< T >::getValue ( int  x,
int  y 
) const
inline

Returns the value of the pixel with the coordinates (x,y)

Definition at line 59 of file TypedSplineModelWrapper.h.

References SourceXtractor::SplineModel::getValue(), SourceXtractor::TypedSplineModelWrapper< T >::m_spline_model, x, and y.

Referenced by SourceXtractor::TypedSplineModelWrapper< T >::getImageTile().

Here is the call graph for this function:

◆ getWidth()

template<typename T >
int SourceXtractor::TypedSplineModelWrapper< T >::getWidth ( ) const
inlineoverridevirtual

Returns the width of the image in pixels.

Implements SourceXtractor::ImageSource.

Definition at line 64 of file TypedSplineModelWrapper.h.

References SourceXtractor::SplineModel::getNaxes(), and SourceXtractor::TypedSplineModelWrapper< T >::m_spline_model.

Here is the call graph for this function:

◆ gridToFits()

template<typename T >
void SourceXtractor::TypedSplineModelWrapper< T >::gridToFits ( boost::filesystem::path  path) const
inline

Definition at line 92 of file TypedSplineModelWrapper.h.

References SourceXtractor::SplineModel::gridToFits(), and SourceXtractor::TypedSplineModelWrapper< T >::m_spline_model.

Here is the call graph for this function:

◆ saveTile()

template<typename T >
void SourceXtractor::TypedSplineModelWrapper< T >::saveTile ( ImageTile )
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 96 of file TypedSplineModelWrapper.h.

Member Data Documentation

◆ m_spline_model

template<typename T >
SplineModel* SourceXtractor::TypedSplineModelWrapper< T >::m_spline_model =nullptr
private

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