SourceXtractorPlusPlus
0.15
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... | |
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 | ~Image ()=default |
Destructor. More... | |
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. More... | |
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 replaced |
Definition at line 75 of file MaskedImage.h.
Referenced by SourceXtractor::SEBackgroundLevelAnalyzer::analyzeBackground(), and SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
inlinefinalvirtual |
Implements SourceXtractor::Image< T >.
Definition at line 93 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 89 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 width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 85 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().
|
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().