SourceXtractorPlusPlus
0.16
Please provide a description of the project.
|
#include <PaddedImage.h>
Public Member Functions | |
std::string | getRepr () const override |
Get a string identifying this image in a human readable manner. More... | |
int | getWidth () const override |
Returns the width of the image in pixels. More... | |
int | getHeight () const override |
Returns the height of the image in pixels. More... | |
std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const override |
![]() | |
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 | |
template<typename... Args> | |
static std::shared_ptr< PaddedImage< T, nullptr > > | create (Args &&... args) |
Protected Member Functions | |
PaddedImage (std::shared_ptr< const Image< T >> img, int width, int height, T default_value) | |
PaddedImage (std::shared_ptr< const Image< T >> img, int width, int height) | |
Private Attributes | |
std::shared_ptr< const Image< T > > | m_img |
int | m_width |
int | m_height |
int | m_lpad |
int | m_tpad |
T | m_default |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
Definition at line 128 of file PaddedImage.h.
|
inlineprotected |
Definition at line 130 of file PaddedImage.h.
References SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_height, SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_lpad, SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_tpad, and SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_width.
|
inlineprotected |
Definition at line 139 of file PaddedImage.h.
|
inlinestatic |
Definition at line 144 of file PaddedImage.h.
|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 160 of file PaddedImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), SourceXtractor::ImageAccessor< T >::getHeight(), SourceXtractor::ImageAccessor< T >::getValue(), SourceXtractor::ImageAccessor< T >::getWidth(), SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_img, SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_lpad, SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_tpad, x, and y.
|
inlineoverridevirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 156 of file PaddedImage.h.
References SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_height.
|
inlineoverridevirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 148 of file PaddedImage.h.
References SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_img.
|
inlineoverridevirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 152 of file PaddedImage.h.
References SourceXtractor::PaddedImage< T, CoordinateInterpolation >::m_width.
|
private |
Definition at line 186 of file PaddedImage.h.
|
private |
Definition at line 184 of file PaddedImage.h.
|
private |
Definition at line 183 of file PaddedImage.h.
|
private |
Definition at line 185 of file PaddedImage.h.
|
private |
Definition at line 185 of file PaddedImage.h.
|
private |
Definition at line 184 of file PaddedImage.h.