SourceXtractorPlusPlus
0.11
Please provide a description of the project.
SEFramework
SEFramework
Image
ImageSource.h
Go to the documentation of this file.
1
17
/*
18
* ImageSource.h
19
*
20
* Created on: Feb 14, 2018
21
* Author: mschefer
22
*/
23
24
#ifndef _SEFRAMEWORK_IMAGE_IMAGESOURCE_H_
25
#define _SEFRAMEWORK_IMAGE_IMAGESOURCE_H_
26
27
#include "
SEFramework/Image/Image.h
"
28
#include "
SEFramework/Image/ImageTile.h
"
29
30
namespace
SourceXtractor
{
31
32
class
ImageSourceBase
{
33
public
:
34
virtual
~ImageSourceBase
() =
default
;
35
37
virtual
std::string
getRepr
()
const
= 0;
38
};
39
40
template
<
typename
T>
41
class
ImageSource
:
public
ImageSourceBase
{
42
public
:
43
44
ImageSource
() {}
45
46
virtual
~ImageSource
() =
default
;
47
48
virtual
std::shared_ptr<ImageTile<T>
>
getImageTile
(
int
x
,
int
y
,
int
width,
int
height)
const
= 0;
49
50
virtual
void
saveTile
(
ImageTile<T>
& tile) = 0;
51
53
virtual
int
getWidth
()
const
= 0;
54
56
virtual
int
getHeight
()
const
= 0;
57
58
private
:
59
60
};
61
62
}
63
64
#endif
/* _SEFRAMEWORK_IMAGE_IMAGESOURCE_H_ */
std::string
STL class.
std::shared_ptr
STL class.
SourceXtractor::ImageSource::~ImageSource
virtual ~ImageSource()=default
SourceXtractor::ImageSourceBase
Definition:
ImageSource.h:32
SourceXtractor::ImageSource::getHeight
virtual int getHeight() const =0
Returns the height of the image in pixels.
SourceXtractor::ImageTile
Definition:
ImageTile.h:57
SourceXtractor::ImageSourceBase::getRepr
virtual std::string getRepr() const =0
Human readable representation of this source.
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::ImageSource::ImageSource
ImageSource()
Definition:
ImageSource.h:44
ImageTile.h
Image.h
SourceXtractor::ImageSource
Definition:
ImageSource.h:41
SourceXtractor::ImageSource::getWidth
virtual int getWidth() const =0
Returns the width of the image in pixels.
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition:
MoffatModelFittingTask.cpp:93
SourceXtractor::ImageSourceBase::~ImageSourceBase
virtual ~ImageSourceBase()=default
SourceXtractor::ImageSource::saveTile
virtual void saveTile(ImageTile< T > &tile)=0
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition:
MoffatModelFittingTask.cpp:93
SourceXtractor::ImageSource::getImageTile
virtual std::shared_ptr< ImageTile< T > > getImageTile(int x, int y, int width, int height) const =0
Generated by
1.8.18