|
SourceXtractorPlusPlus 1.0.3
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.
References m_functor, m_img, and std::move().
Referenced by create().

|
virtualdefault |
|
inlinestatic |
Definition at line 56 of file FunctionalImage.h.
References std::forward(), and FunctionalImage().
Referenced by SourceXtractor::Frame< T >::applyFilter(), and SourceXtractor::BgDFTConvolutionImageSource::generateTile().

|
inlinefinalvirtual |
Implements SourceXtractor::Image< T >.
Definition at line 72 of file FunctionalImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), m_functor, and m_img.

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