SourceXtractorPlusPlus
0.16
Please provide a description of the project.
|
#include <InterpolatedImageSource.h>
Public Member Functions | |
InterpolatedImageSource (std::shared_ptr< Image< T >> image, std::shared_ptr< WeightImage > variance_map, WeightImage::PixelType variance_threshold, int interpolation_gap) | |
std::string | getRepr () const override |
Human readable representation of this source. More... | |
ImageTile::ImageType | getType () const override |
![]() | |
ProcessingImageSource (std::shared_ptr< Image< T >> image) | |
virtual | ~ProcessingImageSource ()=default |
std::shared_ptr< ImageTile > | getImageTile (int x, int y, int width, int height) const override |
void | saveTile (ImageTile &) override |
int | getWidth () const override |
Returns the width of the image in pixels. More... | |
int | getHeight () const override |
Returns the height of the image in pixels. More... | |
ImageTile::ImageType | getType () const override |
![]() | |
ImageSource () | |
virtual | ~ImageSource ()=default |
virtual const std::map< std::string, MetadataEntry > | getMetadata () const |
virtual void | setMetadata (std::string, MetadataEntry) |
![]() | |
T | enable_shared_from_this (T... args) |
T | operator= (T... args) |
T | shared_from_this (T... args) |
T | ~enable_shared_from_this (T... args) |
Protected Member Functions | |
void | generateTile (const std::shared_ptr< Image< T >> &image, ImageTileWithType< T > &tile, int x, int y, int width, int height) const override |
![]() | |
std::string | getImageRepr () const |
Private Member Functions | |
T | getInterpolatedValue (const ImageChunk< T > &img, const ImageChunk< T > &var, int x, int y) const |
Private Attributes | |
std::shared_ptr< WeightImage > | m_variance_map |
WeightImage::PixelType | m_variance_threshold |
int | m_interpolation_gap |
Interpolates an image using a variance map: substitute "bad" pixels with the nearest "good" one
Definition at line 35 of file InterpolatedImageSource.h.
|
inline |
Definition at line 37 of file InterpolatedImageSource.h.
|
inlineoverrideprotectedvirtual |
Implements SourceXtractor::ProcessingImageSource< T >.
Definition at line 55 of file InterpolatedImageSource.h.
References SourceXtractor::ImageTileWithType< T >::getImage(), SourceXtractor::InterpolatedImageSource< T >::getInterpolatedValue(), SourceXtractor::InterpolatedImageSource< T >::m_interpolation_gap, SourceXtractor::InterpolatedImageSource< T >::m_variance_map, std::max(), std::min(), x, and y.
|
inlineprivate |
Definition at line 90 of file InterpolatedImageSource.h.
References SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::InterpolatedImageSource< T >::m_interpolation_gap, SourceXtractor::InterpolatedImageSource< T >::m_variance_threshold, x, and y.
Referenced by SourceXtractor::InterpolatedImageSource< T >::generateTile().
|
inlineoverridevirtual |
Human readable representation of this source.
Implements SourceXtractor::ImageSource.
Definition at line 44 of file InterpolatedImageSource.h.
References SourceXtractor::ProcessingImageSource< T >::getImageRepr(), and SourceXtractor::InterpolatedImageSource< T >::m_variance_map.
|
inlineoverridevirtual |
Implements SourceXtractor::ImageSource.
Definition at line 48 of file InterpolatedImageSource.h.
References SourceXtractor::ImageTile::getTypeValue().
|
private |
Definition at line 88 of file InterpolatedImageSource.h.
Referenced by SourceXtractor::InterpolatedImageSource< T >::generateTile(), and SourceXtractor::InterpolatedImageSource< T >::getInterpolatedValue().
|
private |
Definition at line 86 of file InterpolatedImageSource.h.
Referenced by SourceXtractor::InterpolatedImageSource< T >::generateTile(), and SourceXtractor::InterpolatedImageSource< T >::getRepr().
|
private |
Definition at line 87 of file InterpolatedImageSource.h.
Referenced by SourceXtractor::InterpolatedImageSource< T >::getInterpolatedValue().