SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::InterpolatedImageSource< T > Class Template Reference

#include <InterpolatedImageSource.h>

Inheritance diagram for SourceXtractor::InterpolatedImageSource< T >:
Collaboration diagram for SourceXtractor::InterpolatedImageSource< T >:

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.
ImageTile::ImageType getType () const override
Public Member Functions inherited from SourceXtractor::ProcessingImageSource< T >
 ProcessingImageSource (std::shared_ptr< Image< T > > image)
virtual ~ProcessingImageSource ()=default
std::shared_ptr< ImageTilegetImageTile (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.
int getHeight () const override
 Returns the height of the image in pixels.
ImageTile::ImageType getType () const override
Public Member Functions inherited from SourceXtractor::ImageSource
 ImageSource ()
virtual ~ImageSource ()=default
virtual const std::map< std::string, MetadataEntry > & getMetadata () const
virtual void setMetadata (const std::string &key, const MetadataEntry &value)
Public Member Functions inherited from std::enable_shared_from_this< ImageSource >
enable_shared_from_this (T... args)
operator= (T... args)
shared_from_this (T... args)
~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
Protected Member Functions inherited from SourceXtractor::ProcessingImageSource< T >
std::string getImageRepr () const

Private Member Functions

getInterpolatedValue (const ImageChunk< T > &img, const ImageChunk< T > &var, int x, int y) const

Private Attributes

std::shared_ptr< WeightImagem_variance_map
WeightImage::PixelType m_variance_threshold
int m_interpolation_gap

Detailed Description

template<typename T>
class SourceXtractor::InterpolatedImageSource< T >

Interpolates an image using a variance map: substitute "bad" pixels with the nearest "good" one

Definition at line 35 of file InterpolatedImageSource.h.

Constructor & Destructor Documentation

◆ InterpolatedImageSource()

template<typename T>
SourceXtractor::InterpolatedImageSource< T >::InterpolatedImageSource ( std::shared_ptr< Image< T > > image,
std::shared_ptr< WeightImage > variance_map,
WeightImage::PixelType variance_threshold,
int interpolation_gap )
inline

Member Function Documentation

◆ generateTile()

template<typename T>
void SourceXtractor::InterpolatedImageSource< T >::generateTile ( const std::shared_ptr< Image< T > > & image,
ImageTileWithType< T > & tile,
int x,
int y,
int width,
int height ) const
inlineoverrideprotectedvirtual

◆ getInterpolatedValue()

template<typename T>
T SourceXtractor::InterpolatedImageSource< T >::getInterpolatedValue ( const ImageChunk< T > & img,
const ImageChunk< T > & var,
int x,
int y ) const
inlineprivate

Definition at line 90 of file InterpolatedImageSource.h.

References SourceXtractor::ImageChunk< T >::getValue(), m_interpolation_gap, and m_variance_threshold.

Referenced by generateTile().

Here is the call graph for this function:

◆ getRepr()

template<typename T>
std::string SourceXtractor::InterpolatedImageSource< T >::getRepr ( ) const
inlineoverridevirtual

Human readable representation of this source.

Implements SourceXtractor::ImageSource.

Definition at line 44 of file InterpolatedImageSource.h.

References SourceXtractor::ProcessingImageSource< T >::getImageRepr(), and m_variance_map.

Here is the call graph for this function:

◆ getType()

template<typename T>
ImageTile::ImageType SourceXtractor::InterpolatedImageSource< T >::getType ( ) const
inlineoverridevirtual

Implements SourceXtractor::ImageSource.

Definition at line 48 of file InterpolatedImageSource.h.

References SourceXtractor::ImageTile::getTypeValue().

Here is the call graph for this function:

Member Data Documentation

◆ m_interpolation_gap

template<typename T>
int SourceXtractor::InterpolatedImageSource< T >::m_interpolation_gap
private

◆ m_variance_map

template<typename T>
std::shared_ptr<WeightImage> SourceXtractor::InterpolatedImageSource< T >::m_variance_map
private

Definition at line 86 of file InterpolatedImageSource.h.

Referenced by generateTile(), getRepr(), and InterpolatedImageSource().

◆ m_variance_threshold

template<typename T>
WeightImage::PixelType SourceXtractor::InterpolatedImageSource< T >::m_variance_threshold
private

Definition at line 87 of file InterpolatedImageSource.h.

Referenced by getInterpolatedValue(), and InterpolatedImageSource().


The documentation for this class was generated from the following file: