SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEFramework
SEFramework
FITS
FitsReader.h
Go to the documentation of this file.
1
23
#ifndef _SEFRAMEWORK_IMAGE_FITSREADER_H
24
#define _SEFRAMEWORK_IMAGE_FITSREADER_H
25
26
#include "
SEFramework/Image/BufferedImage.h
"
27
#include "
SEFramework/FITS/FitsImageSource.h
"
28
29
namespace
SourceXtractor
{
30
36
template
<
typename
T>
37
class
FitsReader
{
38
39
public
:
40
44
virtual
~FitsReader
() =
default
;
45
46
static
std::shared_ptr<Image<T>
>
readFile
(
const
std::string
&
filename
) {
47
auto
image_source = std::make_shared<FitsImageSource<T>>(
filename
);
48
return
BufferedImage<T>::create
(image_source);
49
}
50
51
};
/* End of FitsReader class */
52
53
}
/* namespace SourceXtractor */
54
55
56
#endif
std::string
STL class.
std::shared_ptr
STL class.
conf.filename
string filename
Definition:
conf.py:63
SourceXtractor
Definition:
Aperture.h:30
BufferedImage.h
SourceXtractor::FitsReader::readFile
static std::shared_ptr< Image< T > > readFile(const std::string &filename)
Definition:
FitsReader.h:46
SourceXtractor::FitsReader::~FitsReader
virtual ~FitsReader()=default
Destructor.
SourceXtractor::FitsReader
Definition:
FitsReader.h:37
FitsImageSource.h
SourceXtractor::BufferedImage::create
static std::shared_ptr< BufferedImage< T > > create(std::shared_ptr< const ImageSource< T >> source, std::shared_ptr< TileManager > tile_manager=TileManager::getInstance())
Definition:
BufferedImage.cpp:34
Generated by
1.8.17