SourceXtractorPlusPlus
0.15
Please provide a description of the project.
|
#include <ConstantImage.h>
Public Member Functions | |
virtual | ~ConstantImage ()=default |
std::string | getRepr () const final |
Get a string identifying this image in a human readable manner. More... | |
int | getHeight () const final |
Returns the height of the image in pixels. More... | |
int | getWidth () const final |
Returns the width of the image in pixels. More... | |
std::shared_ptr< ImageChunk< T > > | getChunk (int, int, int width, int height) const final |
![]() | |
virtual | ~Image ()=default |
Destructor. More... | |
std::shared_ptr< ImageChunk< T > > | getChunk (const PixelCoordinate &start, const PixelCoordinate &end) const |
bool | isInside (int x, int y) const |
Returns true if the given coordinates are inside the image bounds. More... | |
Static Public Member Functions | |
static std::shared_ptr< ConstantImage< T > > | create (int width, int height, T constant_value) |
Protected Member Functions | |
ConstantImage (int width, int height, T constant_value) | |
Private Attributes | |
int | m_width |
int | m_height |
T | m_constant_value |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
Definition at line 33 of file ConstantImage.h.
|
inlineprotected |
Definition at line 36 of file ConstantImage.h.
Referenced by SourceXtractor::ConstantImage< T >::create().
|
virtualdefault |
|
inlinestatic |
Definition at line 42 of file ConstantImage.h.
References SourceXtractor::ConstantImage< T >::ConstantImage().
Referenced by SourceXtractor::SEBackgroundLevelAnalyzer::analyzeBackground(), SourceXtractor::SimpleBackgroundAnalyzer::analyzeBackground(), SourceXtractor::Frame< T >::Frame(), SourceXtractor::Frame< T >::getBackgroundLevelMap(), and SEMain::mainMethod().
|
inlinefinalvirtual |
Implements SourceXtractor::Image< T >.
Definition at line 61 of file ConstantImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), and SourceXtractor::ConstantImage< T >::m_constant_value.
|
inlinefinalvirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 53 of file ConstantImage.h.
References SourceXtractor::ConstantImage< T >::m_height.
|
inlinefinalvirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 48 of file ConstantImage.h.
References SourceXtractor::ConstantImage< T >::m_constant_value, SourceXtractor::ConstantImage< T >::m_height, SourceXtractor::ConstantImage< T >::m_width, and std::to_string().
|
inlinefinalvirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 57 of file ConstantImage.h.
References SourceXtractor::ConstantImage< T >::m_width.
|
private |
Definition at line 69 of file ConstantImage.h.
Referenced by SourceXtractor::ConstantImage< T >::getChunk(), and SourceXtractor::ConstantImage< T >::getRepr().
|
private |
Definition at line 68 of file ConstantImage.h.
Referenced by SourceXtractor::ConstantImage< T >::getHeight(), and SourceXtractor::ConstantImage< T >::getRepr().
|
private |
Definition at line 67 of file ConstantImage.h.
Referenced by SourceXtractor::ConstantImage< T >::getRepr(), and SourceXtractor::ConstantImage< T >::getWidth().