SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEFramework
SEFramework
Image
BufferedImage.h
Go to the documentation of this file.
1
17
/*
18
* BufferedImage.h
19
*
20
* Created on: Feb 14, 2018
21
* Author: mschefer
22
*/
23
24
#ifndef _SEFRAMEWORK_IMAGE_BUFFEREDIMAGE_H_
25
#define _SEFRAMEWORK_IMAGE_BUFFEREDIMAGE_H_
26
27
#include <mutex>
28
29
#include "
SEFramework/Image/Image.h
"
30
#include "
SEFramework/Image/TileManager.h
"
31
32
33
namespace
SourceXtractor
{
34
38
template
<
typename
T>
39
class
BufferedImage
:
public
virtual
Image
<T> {
40
protected
:
41
42
BufferedImage
(
std::shared_ptr<const ImageSource>
source,
std::shared_ptr<TileManager>
tile_manager);
43
44
public
:
45
virtual
~BufferedImage
() =
default
;
46
47
static
std::shared_ptr<BufferedImage<T>
>
create
(
std::shared_ptr<const ImageSource>
source,
48
std::shared_ptr<TileManager>
tile_manager =
TileManager::getInstance
());
49
50
std::string
getRepr
()
const override
;
51
53
int
getWidth
()
const override
;
54
56
int
getHeight
()
const override
;
57
58
std::shared_ptr<ImageChunk<T>
>
getChunk
(
int
x
,
int
y
,
int
width,
int
height)
const override
;
59
60
protected
:
61
std::shared_ptr<const ImageSource>
m_source
;
62
std::shared_ptr<TileManager>
m_tile_manager
;
63
64
void
copyOverlappingPixels
(
const
ImageTileWithType<T>
&tile,
std::vector<T>
&output,
65
int
x
,
int
y
,
int
w,
int
h,
66
int
tile_w,
int
tile_h)
const
;
67
};
68
69
}
70
71
72
#endif
/* _SEFRAMEWORK_IMAGE_BUFFEREDIMAGE_H_ */
std::string
STL class.
std::shared_ptr
STL class.
SourceXtractor::BufferedImage::m_source
std::shared_ptr< const ImageSource > m_source
Definition:
BufferedImage.h:61
std::vector
STL class.
SourceXtractor::ImageTileWithType
Definition:
ImageTile.h:160
SourceXtractor::Image
Interface representing an image.
Definition:
Image.h:43
SourceXtractor::BufferedImage::create
static std::shared_ptr< BufferedImage< T > > create(std::shared_ptr< const ImageSource > source, std::shared_ptr< TileManager > tile_manager=TileManager::getInstance())
Definition:
BufferedImage.cpp:32
SourceXtractor::BufferedImage::BufferedImage
BufferedImage(std::shared_ptr< const ImageSource > source, std::shared_ptr< TileManager > tile_manager)
Definition:
BufferedImage.cpp:26
SourceXtractor::BufferedImage::m_tile_manager
std::shared_ptr< TileManager > m_tile_manager
Definition:
BufferedImage.h:62
SourceXtractor::BufferedImage::copyOverlappingPixels
void copyOverlappingPixels(const ImageTileWithType< T > &tile, std::vector< T > &output, int x, int y, int w, int h, int tile_w, int tile_h) const
Definition:
BufferedImage.cpp:102
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::BufferedImage::getWidth
int getWidth() const override
Returns the width of the image in pixels.
Definition:
BufferedImage.cpp:45
Image.h
TileManager.h
SourceXtractor::BufferedImage::getChunk
std::shared_ptr< ImageChunk< T > > getChunk(int x, int y, int width, int height) const override
Definition:
BufferedImage.cpp:57
SourceXtractor::BufferedImage::getHeight
int getHeight() const override
Returns the height of the image in pixels.
Definition:
BufferedImage.cpp:51
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition:
MoffatModelFittingTask.cpp:94
SourceXtractor::BufferedImage::~BufferedImage
virtual ~BufferedImage()=default
SourceXtractor::BufferedImage::getRepr
std::string getRepr() const override
Get a string identifying this image in a human readable manner.
Definition:
BufferedImage.cpp:39
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition:
MoffatModelFittingTask.cpp:94
SourceXtractor::BufferedImage
Definition:
BufferedImage.h:39
SourceXtractor::TileManager::getInstance
static std::shared_ptr< TileManager > getInstance()
Definition:
TileManager.cpp:136
Generated by
1.8.20