|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
#include <FunctionalImage.h>


Public Types | |
| using | FunctorType = std::function<T(int x, int y, I v)> |
Public Types inherited from SourceXtractor::Image< T > | |
| using | PixelType = T |
Public Member Functions | |
| virtual | ~FunctionalImage ()=default |
| std::string | getRepr () const final |
| Get a string identifying this image in a human readable manner. | |
| int | getWidth () const final |
| Returns the width of the image in pixels. | |
| int | getHeight () const final |
| Returns the height of the image in pixels. | |
| std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const final |
Public Member Functions inherited from SourceXtractor::Image< T > | |
| virtual | ~Image ()=default |
| Destructor. | |
| 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. | |
Static Public Member Functions | |
| template<typename ... Args> | |
| static std::shared_ptr< FunctionalImage< T, I > > | create (Args &&... args) |
Protected Member Functions | |
| FunctionalImage (std::shared_ptr< const Image< I > > img, FunctorType functor) | |
Private Attributes | |
| std::shared_ptr< const Image< I > > | m_img |
| FunctorType | m_functor |
Apply a transformation to each individual pixel
| T | Pixel type |
| Pixel | type of the input image |
Definition at line 43 of file FunctionalImage.h.
| using SourceXtractor::FunctionalImage< T, I >::FunctorType = std::function<T(int x, int y, I v)> |
Definition at line 45 of file FunctionalImage.h.
|
inlineprotected |
Definition at line 48 of file FunctionalImage.h.
|
virtualdefault |
|
inlinestatic |
Definition at line 56 of file FunctionalImage.h.
Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlinefinalvirtual |
Implements SourceXtractor::Image< T >.
Definition at line 72 of file FunctionalImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), SourceXtractor::FunctionalImage< T, I >::m_functor, SourceXtractor::FunctionalImage< T, I >::m_img, x, and y.

|
inlinefinalvirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 68 of file FunctionalImage.h.
References SourceXtractor::FunctionalImage< T, I >::m_img.
|
inlinefinalvirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 60 of file FunctionalImage.h.
References SourceXtractor::FunctionalImage< T, I >::m_functor, and std::function::target_type().

|
inlinefinalvirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 64 of file FunctionalImage.h.
References SourceXtractor::FunctionalImage< T, I >::m_img.
|
private |
Definition at line 85 of file FunctionalImage.h.
Referenced by SourceXtractor::FunctionalImage< T, I >::getChunk(), and SourceXtractor::FunctionalImage< T, I >::getRepr().
|
private |
Definition at line 84 of file FunctionalImage.h.
Referenced by SourceXtractor::FunctionalImage< T, I >::getChunk(), SourceXtractor::FunctionalImage< T, I >::getHeight(), and SourceXtractor::FunctionalImage< T, I >::getWidth().