SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
31
32
33namespace SourceXtractor {
34
38template <typename T>
39class BufferedImage : public virtual Image<T> {
40protected:
41
43
44public:
45 virtual ~BufferedImage() = default;
46
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
60protected:
63
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::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
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
std::shared_ptr< TileManager > m_tile_manager
static std::shared_ptr< BufferedImage< T > > create(std::shared_ptr< const ImageSource > source, std::shared_ptr< TileManager > tile_manager=TileManager::getInstance())
std::shared_ptr< const ImageSource > m_source
std::string getRepr() const override
Get a string identifying this image in a human readable manner.
virtual ~BufferedImage()=default
int getWidth() const override
Returns the width of the image in pixels.
int getHeight() const override
Returns the height of the image in pixels.
BufferedImage(std::shared_ptr< const ImageSource > source, std::shared_ptr< TileManager > tile_manager)
std::shared_ptr< ImageChunk< T > > getChunk(int x, int y, int width, int height) const override
Interface representing an image.
Definition Image.h:44
static std::shared_ptr< TileManager > getInstance()