|
SourceXtractorPlusPlus
0.19
SourceXtractor++, the next generation SExtractor
|
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... | |
| std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const override |
Public Member Functions inherited from SourceXtractor::Image< T > | |
| 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 < 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 | |
Public Types inherited from SourceXtractor::Image< T > | |
| using | PixelType = T |
Changes the center of an image, wrapping it around the edges.
Definition at line 36 of file RecenterImage.h.
|
inlineprotected |
Definition at line 38 of file RecenterImage.h.
|
inlinestatic |
Definition at line 44 of file RecenterImage.h.
Referenced by SourceXtractor::DFTConvolution< DetectionImage::PixelType, PaddedType >::padKernel().
|
inlineoverridevirtual |
Implements SourceXtractor::Image< T >.
Definition at line 60 of file RecenterImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), SourceXtractor::ImageAccessor< T >::getHeight(), SourceXtractor::ImageAccessor< T >::getValue(), SourceXtractor::ImageAccessor< T >::getWidth(), ModelFitting::height, SourceXtractor::RecenterImage< T >::m_center, SourceXtractor::RecenterImage< T >::m_img, SourceXtractor::PixelCoordinate::m_x, SourceXtractor::PixelCoordinate::m_y, and ModelFitting::width.

|
inlineoverridevirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 56 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 48 of file RecenterImage.h.
References SourceXtractor::RecenterImage< T >::m_img.
|
inlineoverridevirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 52 of file RecenterImage.h.
References SourceXtractor::RecenterImage< T >::m_img.
|
private |
Definition at line 78 of file RecenterImage.h.
Referenced by SourceXtractor::RecenterImage< T >::getChunk().
|
private |
Definition at line 77 of file RecenterImage.h.
Referenced by SourceXtractor::RecenterImage< T >::getChunk(), SourceXtractor::RecenterImage< T >::getHeight(), SourceXtractor::RecenterImage< T >::getRepr(), and SourceXtractor::RecenterImage< T >::getWidth().
1.8.5