|
SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <FitsImageSource.h>
Public Member Functions | |
| FitsImageSource (const std::string &filename, int hdu_number=0, std::shared_ptr< FitsFileManager > manager=FitsFileManager::getInstance()) | |
| FitsImageSource (const std::string &filename, int width, int height, const std::shared_ptr< CoordinateSystem > coord_system=nullptr, std::shared_ptr< FitsFileManager > manager=FitsFileManager::getInstance()) | |
| virtual | ~FitsImageSource ()=default |
| std::string | getRepr () const override |
| Human readable representation of this source. More... | |
| std::shared_ptr< ImageTile< T > > | getImageTile (int x, int y, int width, int height) const override |
| 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... | |
| void | saveTile (ImageTile< T > &tile) override |
| template<typename TT > | |
| bool | readFitsKeyword (const std::string &header_keyword, TT &out_value) const |
| int | getHDU () const |
| std::unique_ptr< std::vector< char > > | getFitsHeaders (int &number_of_records) const |
| const std::map< std::string, MetadataEntry > & | getMetadata () const override |
Public Member Functions inherited from SourceXtractor::ImageSourceWithMetadata< T > | |
| virtual | ~ImageSourceWithMetadata ()=default |
Public Member Functions inherited from SourceXtractor::ImageSource< T > | |
| ImageSource () | |
| virtual | ~ImageSource ()=default |
Public Member Functions inherited from SourceXtractor::ImageSourceBase | |
| virtual | ~ImageSourceBase ()=default |
Public Member Functions inherited from std::enable_shared_from_this< ImageSource< T > > | |
| T | enable_shared_from_this (T... args) |
| T | operator= (T... args) |
| T | shared_from_this (T... args) |
| T | ~enable_shared_from_this (T... args) |
Private Member Functions | |
| void | switchHdu (fitsfile *fptr, int hdu_number) const |
| int | getDataType () const |
| int | getImageType () const |
| template<> | |
| int | getDataType () const |
| template<> | |
| int | getDataType () const |
| template<> | |
| int | getDataType () const |
| template<> | |
| int | getDataType () const |
| template<> | |
| int | getDataType () const |
| template<> | |
| int | getDataType () const |
| template<> | |
| int | getImageType () const |
| template<> | |
| int | getImageType () const |
| template<> | |
| int | getImageType () const |
| template<> | |
| int | getImageType () const |
| template<> | |
| int | getImageType () const |
| template<> | |
| int | getImageType () const |
Private Attributes | |
| std::string | m_filename |
| std::shared_ptr< FitsFile > | m_fits_file |
| std::shared_ptr< FitsFileManager > | m_manager |
| int | m_width |
| int | m_height |
| int | m_hdu_number |
Definition at line 43 of file FitsImageSource.h.
| SourceXtractor::FitsImageSource< T >::FitsImageSource | ( | const std::string & | filename, |
| int | hdu_number = 0, |
||
| std::shared_ptr< FitsFileManager > | manager = FitsFileManager::getInstance() |
||
| ) |
Constructor
| filename | Path to the FITS file |
| hdu_number | HDU number. If <= 0, the constructor will use the first HDU containing an image |
| manager |
Definition at line 45 of file FitsImageSource.cpp.
References conf::filename, SourceXtractor::FitsImageSource< T >::m_fits_file, SourceXtractor::FitsImageSource< T >::m_hdu_number, SourceXtractor::FitsImageSource< T >::m_height, SourceXtractor::FitsImageSource< T >::m_manager, SourceXtractor::FitsImageSource< T >::m_width, and SourceXtractor::FitsImageSource< T >::switchHdu().
| SourceXtractor::FitsImageSource< T >::FitsImageSource | ( | const std::string & | filename, |
| int | width, | ||
| int | height, | ||
| const std::shared_ptr< CoordinateSystem > | coord_system = nullptr, |
||
| std::shared_ptr< FitsFileManager > | manager = FitsFileManager::getInstance() |
||
| ) |
Definition at line 75 of file FitsImageSource.cpp.
References conf::filename, SourceXtractor::FitsImageSource< T >::getDataType(), SourceXtractor::FitsImageSource< T >::getImageType(), std::left(), SourceXtractor::FitsImageSource< T >::m_fits_file, SourceXtractor::FitsImageSource< T >::m_hdu_number, SourceXtractor::FitsImageSource< T >::m_height, SourceXtractor::FitsImageSource< T >::m_manager, SourceXtractor::FitsImageSource< T >::m_width, std::setw(), std::ostringstream::str(), and SourceXtractor::FitsImageSource< T >::switchHdu().
|
virtualdefault |
|
private |
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource().
|
private |
Definition at line 242 of file FitsImageSource.cpp.
|
private |
Definition at line 245 of file FitsImageSource.cpp.
|
private |
Definition at line 248 of file FitsImageSource.cpp.
|
private |
Definition at line 251 of file FitsImageSource.cpp.
|
private |
Definition at line 255 of file FitsImageSource.cpp.
|
private |
Definition at line 258 of file FitsImageSource.cpp.
| std::unique_ptr< std::vector< char > > SourceXtractor::FitsImageSource< T >::getFitsHeaders | ( | int & | number_of_records | ) | const |
Definition at line 197 of file FitsImageSource.cpp.
References std::string::begin(), std::string::end(), and std::string::size().
Referenced by SourceXtractor::WCS::WCS().
|
inline |
Definition at line 92 of file FitsImageSource.h.
References SourceXtractor::FitsImageSource< T >::m_hdu_number.
|
inlineoverridevirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::ImageSource< T >.
Definition at line 75 of file FitsImageSource.h.
References SourceXtractor::FitsImageSource< T >::m_height.
|
overridevirtual |
Implements SourceXtractor::ImageSource< T >.
Definition at line 133 of file FitsImageSource.cpp.
|
private |
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource().
|
private |
Definition at line 261 of file FitsImageSource.cpp.
|
private |
Definition at line 264 of file FitsImageSource.cpp.
|
private |
Definition at line 267 of file FitsImageSource.cpp.
|
private |
Definition at line 270 of file FitsImageSource.cpp.
|
private |
Definition at line 274 of file FitsImageSource.cpp.
|
private |
Definition at line 277 of file FitsImageSource.cpp.
|
inlineoverridevirtual |
Implements SourceXtractor::ImageSourceWithMetadata< T >.
Definition at line 98 of file FitsImageSource.h.
References SourceXtractor::FitsImageSource< T >::m_fits_file, and SourceXtractor::FitsImageSource< T >::m_hdu_number.
Referenced by SourceXtractor::FitsImageSource< T >::readFitsKeyword().
|
inlineoverridevirtual |
Human readable representation of this source.
Implements SourceXtractor::ImageSourceBase.
Definition at line 63 of file FitsImageSource.h.
References SourceXtractor::FitsImageSource< T >::m_filename.
|
inlineoverridevirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::ImageSource< T >.
Definition at line 70 of file FitsImageSource.h.
References SourceXtractor::FitsImageSource< T >::m_width.
|
inline |
Definition at line 82 of file FitsImageSource.h.
References SourceXtractor::FitsImageSource< T >::getMetadata().
|
overridevirtual |
Implements SourceXtractor::ImageSource< T >.
Definition at line 157 of file FitsImageSource.cpp.
References SourceXtractor::ImageTile< T >::getImage(), SourceXtractor::ImageTile< T >::getPosX(), SourceXtractor::ImageTile< T >::getPosY(), x, and y.
|
private |
Definition at line 180 of file FitsImageSource.cpp.
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource().
|
private |
Definition at line 110 of file FitsImageSource.h.
Referenced by SourceXtractor::FitsImageSource< T >::getRepr().
|
private |
Definition at line 111 of file FitsImageSource.h.
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource(), and SourceXtractor::FitsImageSource< T >::getMetadata().
|
private |
Definition at line 117 of file FitsImageSource.h.
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource(), SourceXtractor::FitsImageSource< T >::getHDU(), and SourceXtractor::FitsImageSource< T >::getMetadata().
|
private |
Definition at line 115 of file FitsImageSource.h.
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource(), and SourceXtractor::FitsImageSource< T >::getHeight().
|
private |
Definition at line 112 of file FitsImageSource.h.
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource().
|
private |
Definition at line 114 of file FitsImageSource.h.
Referenced by SourceXtractor::FitsImageSource< T >::FitsImageSource(), and SourceXtractor::FitsImageSource< T >::getWidth().
1.8.14