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


Public Member Functions | |
| virtual | ~MaskedImage ()=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::size_t | getNMasked () const |
| std::size_t | getNTotal () const |
| 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 | |
| static std::shared_ptr< MaskedImage< T, M, Operator > > | create (const std::shared_ptr< Image< T > > &image, const std::shared_ptr< Image< M > > &mask, T replacement, M mask_flag=0x01) |
Private Member Functions | |
| MaskedImage (const std::shared_ptr< Image< T > > &image, const std::shared_ptr< Image< M > > &mask, T replacement, M mask_flag) | |
Private Attributes | |
| std::shared_ptr< Image< T > > | m_image |
| std::shared_ptr< Image< M > > | m_mask |
| T | m_replacement |
| M | m_mask_flag |
| Operator< M > | m_operator |
| std::size_t | m_n_masked |
| std::size_t | m_n_total |
Additional Inherited Members | |
Public Types inherited from SourceXtractor::Image< T > | |
| using | PixelType = T |
Mask an image, replacing masked values
| T | Pixel type of the masked image |
| M | Pixel type of the mask |
| Operator | Operator to apply on the mask pixels. Defaults to bitwise and (&) |
Definition at line 45 of file MaskedImage.h.
|
inlineprivate |
Definition at line 47 of file MaskedImage.h.
|
virtualdefault |
|
inlinestatic |
Create a masked image
| image | Image to be masked |
| mask | Mask |
| replacement | Replace masked pixels with this value |
| mask_flag | If Operator(mask pixel, mask_flag) is true, this given pixel is replaced |
Definition at line 78 of file MaskedImage.h.
Referenced by SourceXtractor::SEBackgroundLevelAnalyzer::analyzeBackground(), and SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlinefinalvirtual |
Implements SourceXtractor::Image< T >.
Definition at line 111 of file MaskedImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), SourceXtractor::MaskedImage< T, M, Operator >::m_image, SourceXtractor::MaskedImage< T, M, Operator >::m_mask, SourceXtractor::MaskedImage< T, M, Operator >::m_mask_flag, SourceXtractor::MaskedImage< T, M, Operator >::m_n_masked, SourceXtractor::MaskedImage< T, M, Operator >::m_n_total, SourceXtractor::MaskedImage< T, M, Operator >::m_operator, SourceXtractor::MaskedImage< T, M, Operator >::m_replacement, std::move(), x, and y.

|
inlinefinalvirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 99 of file MaskedImage.h.
References SourceXtractor::MaskedImage< T, M, Operator >::m_image.
|
inline |
Definition at line 103 of file MaskedImage.h.
References SourceXtractor::MaskedImage< T, M, Operator >::m_n_masked.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getRepr().
|
inline |
Definition at line 107 of file MaskedImage.h.
References SourceXtractor::MaskedImage< T, M, Operator >::m_n_total.
|
inlinefinalvirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 84 of file MaskedImage.h.
References SourceXtractor::MaskedImage< T, M, Operator >::getNMasked(), SourceXtractor::MaskedImage< T, M, Operator >::m_image, SourceXtractor::MaskedImage< T, M, Operator >::m_n_total, and std::snprintf().

|
inlinefinalvirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 95 of file MaskedImage.h.
References SourceXtractor::MaskedImage< T, M, Operator >::m_image.
|
private |
|
private |
Definition at line 53 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk().
|
private |
Definition at line 55 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk().
|
mutableprivate |
Definition at line 58 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), and SourceXtractor::MaskedImage< T, M, Operator >::getNMasked().
|
mutableprivate |
Definition at line 59 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), SourceXtractor::MaskedImage< T, M, Operator >::getNTotal(), and SourceXtractor::MaskedImage< T, M, Operator >::getRepr().
|
private |
Definition at line 56 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk().
|
private |
Definition at line 54 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk().