SourceXtractorPlusPlus
0.14
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
SEImplementation
SEImplementation
Background
SE
ReplaceUndefImage.h
Go to the documentation of this file.
1
18
#ifndef SOURCEXTRACTORPLUSPLUS_REPLACEUNDEFIMAGE_H
19
#define SOURCEXTRACTORPLUSPLUS_REPLACEUNDEFIMAGE_H
20
21
#include "
SEFramework/Image/VectorImage.h
"
22
23
namespace
SourceXtractor {
24
30
template
<
typename
T>
31
class
ReplaceUndefImage
:
public
ImageBase
<T> {
32
private
:
33
ReplaceUndefImage
(
const
std::shared_ptr
<
VectorImage<T>
>& image, T invalid);
34
35
public
:
39
~ReplaceUndefImage
() =
default
;
40
50
static
std::shared_ptr<ReplaceUndefImage<T>
>
create
(
const
std::shared_ptr
<
VectorImage<T>
>& image, T undefined) {
51
return
std::shared_ptr<ReplaceUndefImage<T>
>(
new
ReplaceUndefImage
(image, undefined));
52
};
53
54
std::string
getRepr
() const final;
55
56
T
getValue
(
int
x
,
int
y
) const final;
57
58
int
getWidth
() const final;
59
60
int
getHeight
() const final;
61
62
private:
63
std::
shared_ptr
<
VectorImage
<T>>
m_image
;
64
T
m_invalid
;
65
};
66
67
extern template class
ReplaceUndefImage
<
SeFloat
>;
68
69
}
// end of namespace SourceXtractor
70
71
#endif // SOURCEXTRACTORPLUSPLUS_REPLACEUNDEFIMAGE_H
std::shared_ptr
SourceXtractor::ImageBase
Definition:
ImageBase.h:35
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition:
MoffatModelFittingTask.cpp:94
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
SourceXtractor::ReplaceUndefImage::getWidth
int getWidth() const final
Returns the width of the image in pixels.
Definition:
ReplaceUndefImage.cpp:33
SourceXtractor::ReplaceUndefImage::getHeight
int getHeight() const final
Returns the height of the image in pixels.
Definition:
ReplaceUndefImage.cpp:38
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition:
MoffatModelFittingTask.cpp:94
std::string
STL class.
SourceXtractor::ReplaceUndefImage::getRepr
std::string getRepr() const final
Get a string identifying this image in a human readable manner.
Definition:
ReplaceUndefImage.cpp:28
SourceXtractor::VectorImage
Image implementation which keeps the pixel values in memory.
Definition:
VectorImage.h:53
VectorImage.h
SourceXtractor::ReplaceUndefImage::create
static std::shared_ptr< ReplaceUndefImage< T > > create(const std::shared_ptr< VectorImage< T >> &image, T undefined)
Definition:
ReplaceUndefImage.h:50
SourceXtractor::ReplaceUndefImage::~ReplaceUndefImage
~ReplaceUndefImage()=default
SourceXtractor::ReplaceUndefImage::getValue
T getValue(int x, int y) const final
Returns the value of the pixel with the coordinates (x,y)
Definition:
ReplaceUndefImage.cpp:43
SourceXtractor::ReplaceUndefImage
Definition:
ReplaceUndefImage.h:31
SourceXtractor::ReplaceUndefImage::ReplaceUndefImage
ReplaceUndefImage(const std::shared_ptr< VectorImage< T >> &image, T invalid)
Definition:
ReplaceUndefImage.cpp:23
SourceXtractor::ReplaceUndefImage::m_image
std::shared_ptr< VectorImage< T > > m_image
Definition:
ReplaceUndefImage.h:63
SourceXtractor::ReplaceUndefImage::m_invalid
T m_invalid
Definition:
ReplaceUndefImage.h:64
Generated by
1.8.5