SourceXtractorPlusPlus
0.8
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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_ */
SourceXtractor::ImageSourceBase::getRepr
virtual std::string getRepr() const =0
Human readable representation of this source.
std::shared_ptr
SourceXtractor::ImageSource::getHeight
virtual int getHeight() const =0
Returns the height of the image in pixels.
SourceXtractor::ImageSourceBase
Definition:
ImageSource.h:32
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition:
MoffatModelFittingTask.cpp:92
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition:
MoffatModelFittingTask.cpp:92
ImageTile.h
std::string
STL class.
Image.h
SourceXtractor::ImageSource::ImageSource
ImageSource()
Definition:
ImageSource.h:44
SourceXtractor::ImageTile
Definition:
ImageTile.h:57
SourceXtractor::ImageSourceBase::~ImageSourceBase
virtual ~ImageSourceBase()=default
SourceXtractor::ImageSource::getWidth
virtual int getWidth() const =0
Returns the width of the image in pixels.
SourceXtractor::ImageSource
Definition:
ImageSource.h:41
SourceXtractor::ImageSource::saveTile
virtual void saveTile(ImageTile< T > &tile)=0
SourceXtractor::ImageSource::getImageTile
virtual std::shared_ptr< ImageTile< T > > getImageTile(int x, int y, int width, int height) const =0
SourceXtractor::ImageSource::~ImageSource
virtual ~ImageSource()=default
Generated by
1.8.5