SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#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. 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 |
![]() | |
virtual | ~ImageBase () |
![]() | |
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... | |
![]() | |
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 | |
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 |
Additional Inherited Members | |
![]() | |
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 replaces |
Definition at line 75 of file MaskedImage.h.
Referenced by SourceXtractor::SEBackgroundLevelAnalyzer::analyzeBackground().
|
inlinefinalvirtual |
Reimplemented from SourceXtractor::ImageBase< T >.
Definition at line 99 of file MaskedImage.h.
References SourceXtractor::UniversalImageChunk< T >::create(), ModelFitting::height, 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_operator, SourceXtractor::MaskedImage< T, M, Operator >::m_replacement, std::move(), ModelFitting::width, x, and y.
|
inlinefinalvirtual |
Returns the height 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.
|
inlinefinalvirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 81 of file MaskedImage.h.
References SourceXtractor::MaskedImage< T, M, Operator >::m_image.
|
inlinefinalvirtual |
Returns the value of the pixel with the coordinates (x,y)
Implements SourceXtractor::Image< T >.
Definition at line 85 of file MaskedImage.h.
References 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_operator, SourceXtractor::MaskedImage< T, M, Operator >::m_replacement, x, and y.
|
inlinefinalvirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 91 of file MaskedImage.h.
References SourceXtractor::MaskedImage< T, M, Operator >::m_image.
|
private |
Definition at line 52 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), SourceXtractor::MaskedImage< T, M, Operator >::getHeight(), SourceXtractor::MaskedImage< T, M, Operator >::getRepr(), SourceXtractor::MaskedImage< T, M, Operator >::getValue(), and SourceXtractor::MaskedImage< T, M, Operator >::getWidth().
|
private |
Definition at line 53 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), and SourceXtractor::MaskedImage< T, M, Operator >::getValue().
|
private |
Definition at line 55 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), and SourceXtractor::MaskedImage< T, M, Operator >::getValue().
|
private |
Definition at line 56 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), and SourceXtractor::MaskedImage< T, M, Operator >::getValue().
|
private |
Definition at line 54 of file MaskedImage.h.
Referenced by SourceXtractor::MaskedImage< T, M, Operator >::getChunk(), and SourceXtractor::MaskedImage< T, M, Operator >::getValue().