SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
Changes the center of an image, wrapping it around the edges. More...
#include <RecenterImage.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... | |
T | getValue (int x, int y) const override |
Returns the value of the pixel with the coordinates (x,y) More... | |
![]() | |
virtual | ~ImageBase () |
virtual std::shared_ptr < ImageChunk< T > > | getChunk (int x, int y, int width, int height) const override |
![]() | |
virtual | ~Image ()=default |
Destructor. More... | |
T | getValue (PixelCoordinate pc) const |
bool | isInside (int x, int y) const |
Returns true if the given coordinates are inside the image bounds. More... | |
![]() | |
T | enable_shared_from_this (T...args) |
T | operator= (T...args) |
T | shared_from_this (T...args) |
T | ~enable_shared_from_this (T...args) |
Static Public Member Functions | |
template<typename... Args> | |
static std::shared_ptr < RecenterImage< T > > | create (Args &&...args) |
Protected Member Functions | |
RecenterImage (std::shared_ptr< const Image< T >> img, const PixelCoordinate &new_center) | |
Private Attributes | |
std::shared_ptr< const Image< T > > | m_img |
PixelCoordinate | m_center |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
Changes the center of an image, wrapping it around the edges.
Definition at line 35 of file RecenterImage.h.
|
inlineprotected |
Definition at line 37 of file RecenterImage.h.
|
inlinestatic |
Definition at line 43 of file RecenterImage.h.
Referenced by SourceXtractor::DFTConvolution< DetectionImage::PixelType, PaddedType >::padKernel().
|
inlineoverridevirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 55 of file RecenterImage.h.
References SourceXtractor::RecenterImage< T >::m_img.
|
inlineoverridevirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 47 of file RecenterImage.h.
References SourceXtractor::RecenterImage< T >::m_img.
|
inlineoverridevirtual |
Returns the value of the pixel with the coordinates (x,y)
Implements SourceXtractor::Image< T >.
Definition at line 59 of file RecenterImage.h.
References SourceXtractor::RecenterImage< T >::m_center, SourceXtractor::RecenterImage< T >::m_img, SourceXtractor::PixelCoordinate::m_x, and SourceXtractor::PixelCoordinate::m_y.
|
inlineoverridevirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 51 of file RecenterImage.h.
References SourceXtractor::RecenterImage< T >::m_img.
|
private |
Definition at line 67 of file RecenterImage.h.
Referenced by SourceXtractor::RecenterImage< T >::getValue().
|
private |
Definition at line 66 of file RecenterImage.h.
Referenced by SourceXtractor::RecenterImage< T >::getHeight(), SourceXtractor::RecenterImage< T >::getRepr(), SourceXtractor::RecenterImage< T >::getValue(), and SourceXtractor::RecenterImage< T >::getWidth().