|
SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <ReplaceUndefImage.h>
Public Member Functions | |
| ~ReplaceUndefImage ()=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... | |
Public Member Functions inherited from SourceXtractor::ImageBase< T > | |
| virtual | ~ImageBase () |
| virtual std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const override |
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 | |
| static std::shared_ptr< ReplaceUndefImage< T > > | create (const std::shared_ptr< VectorImage< T >> &image, T undefined) |
Private Member Functions | |
| ReplaceUndefImage (const std::shared_ptr< VectorImage< T >> &image, T invalid) | |
Private Attributes | |
| std::shared_ptr< VectorImage< T > > | m_image |
| T | m_invalid |
Additional Inherited Members | |
Public Types inherited from SourceXtractor::Image< T > | |
| using | PixelType = T |
Replace undefined (i.e. masked) values with the average of the closest defined pixel values
| T | Pixel type |
Definition at line 31 of file ReplaceUndefImage.h.
|
private |
Definition at line 23 of file ReplaceUndefImage.cpp.
Referenced by SourceXtractor::ReplaceUndefImage< T >::create().
|
default |
Dstructor
|
inlinestatic |
Create an image where filtered values are replaced with the average of the closest neighbors
| image | Image to "fix" |
| undefined | Value used as mask |
Definition at line 50 of file ReplaceUndefImage.h.
References SourceXtractor::ReplaceUndefImage< T >::ReplaceUndefImage().
|
finalvirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 38 of file ReplaceUndefImage.cpp.
|
finalvirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 28 of file ReplaceUndefImage.cpp.
|
finalvirtual |
Returns the value of the pixel with the coordinates (x,y)
Implements SourceXtractor::Image< T >.
Definition at line 43 of file ReplaceUndefImage.cpp.
References std::count(), std::distance(), dx, dy, std::numeric_limits::max(), x, and y.
|
finalvirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 33 of file ReplaceUndefImage.cpp.
|
private |
Definition at line 63 of file ReplaceUndefImage.h.
|
private |
Definition at line 64 of file ReplaceUndefImage.h.
1.8.14