|
SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <FunctionalImage.h>
Public Types | |
| using | FunctorType = std::function< T(int x, int y)> |
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. More... | |
| T | getValue (int x, int y) const final |
| Returns the value of the pixel with the coordinates (x,y) More... | |
| int | getWidth () const final |
| Returns the width of the image in pixels. More... | |
| int | getHeight () const final |
| Returns the height of the image in pixels. More... | |
| std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const final |
Public Member Functions inherited from SourceXtractor::ImageBase< T > | |
| virtual | ~ImageBase () |
Public Member Functions inherited from SourceXtractor::Image< T > | |
| 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... | |
Public Member Functions inherited from std::enable_shared_from_this< ImageBase< T > > | |
| 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< ImageBase< T > > | create (Args &&... args) |
Protected Member Functions | |
| FunctionalImage (int width, int height, FunctorType functor) | |
Private Attributes | |
| int | m_width |
| int | m_height |
| FunctorType | m_functor |
Definition at line 31 of file FunctionalImage.h.
| using SourceXtractor::FunctionalImage< T >::FunctorType = std::function<T(int x, int y)> |
Definition at line 33 of file FunctionalImage.h.
|
inlineprotected |
Definition at line 36 of file FunctionalImage.h.
|
virtualdefault |
|
inlinestatic |
Definition at line 44 of file FunctionalImage.h.
Referenced by SourceXtractor::Frame< T >::applyFilter(), SourceXtractor::BackgroundModel::BackgroundModel(), and SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlinefinalvirtual |
Reimplemented from SourceXtractor::ImageBase< T >.
Definition at line 64 of file FunctionalImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), SourceXtractor::FunctionalImage< T >::m_functor, std::move(), x, and y.
|
inlinefinalvirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 60 of file FunctionalImage.h.
References SourceXtractor::FunctionalImage< T >::m_height.
Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlinefinalvirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 48 of file FunctionalImage.h.
References SourceXtractor::FunctionalImage< T >::m_functor, and std::function::target_type().
|
inlinefinalvirtual |
Returns the value of the pixel with the coordinates (x,y)
Implements SourceXtractor::Image< T >.
Definition at line 52 of file FunctionalImage.h.
References SourceXtractor::FunctionalImage< T >::m_functor, x, and y.
Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlinefinalvirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 56 of file FunctionalImage.h.
References SourceXtractor::FunctionalImage< T >::m_width.
Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
private |
Definition at line 76 of file FunctionalImage.h.
Referenced by SourceXtractor::FunctionalImage< T >::getChunk(), SourceXtractor::FunctionalImage< T >::getRepr(), and SourceXtractor::FunctionalImage< T >::getValue().
|
private |
Definition at line 75 of file FunctionalImage.h.
Referenced by SourceXtractor::FunctionalImage< T >::getHeight().
|
private |
Definition at line 75 of file FunctionalImage.h.
Referenced by SourceXtractor::FunctionalImage< T >::getWidth().
1.8.14