SourceXtractorPlusPlus  0.12
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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< ImageTile< T > > getImageTile (int x, int y, int width, int height) const override
 
void gridToFits (boost::filesystem::path path) const
 
void saveTile (ImageTile< T > &) override
 
- Public Member Functions inherited from SourceXtractor::ImageSource< T >
 ImageSource ()
 
virtual ~ImageSource ()=default
 
- Public Member Functions inherited from SourceXtractor::ImageSourceBase
virtual ~ImageSourceBase ()=default
 

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 36 of file TypedSplineModelWrapper.h.

Constructor & Destructor Documentation

template<typename T >
virtual SourceXtractor::TypedSplineModelWrapper< T >::~TypedSplineModelWrapper ( )
inlinevirtual
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

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 50 of file TypedSplineModelWrapper.h.

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

Returns the height of the image in pixels.

Implements SourceXtractor::ImageSource< T >.

Definition at line 70 of file TypedSplineModelWrapper.h.

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

Here is the call graph for this function:

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

Implements SourceXtractor::ImageSource< T >.

Definition at line 79 of file TypedSplineModelWrapper.h.

References SourceXtractor::TypedSplineModelWrapper< T >::getValue(), ModelFitting::height, ModelFitting::width, x, and y.

Here is the call graph for this function:

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

Returns the median of the spline.

Definition at line 75 of file TypedSplineModelWrapper.h.

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

Here is the call graph for this function:

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

Human readable representation.

Implements SourceXtractor::ImageSourceBase.

Definition at line 55 of file TypedSplineModelWrapper.h.

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 60 of file TypedSplineModelWrapper.h.

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

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

Here is the call graph for this function:

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

Returns the width of the image in pixels.

Implements SourceXtractor::ImageSource< T >.

Definition at line 65 of file TypedSplineModelWrapper.h.

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

Here is the call graph for this function:

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

Definition at line 93 of file TypedSplineModelWrapper.h.

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

Here is the call graph for this function:

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

Implements SourceXtractor::ImageSource< T >.

Definition at line 97 of file TypedSplineModelWrapper.h.

Member Data Documentation

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

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