SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::WeightMapImageSource Class Reference
Inheritance diagram for SourceXtractor::WeightMapImageSource:
Collaboration diagram for SourceXtractor::WeightMapImageSource:

Public Member Functions

 WeightMapImageSource (std::shared_ptr< Image< WeightImage::PixelType > > image, WeightImageConfig::WeightType weight_type, WeightImage::PixelType scaling)
Public Member Functions inherited from SourceXtractor::ProcessingImageSource< WeightImage::PixelType >
 ProcessingImageSource (std::shared_ptr< Image< WeightImage::PixelType > > 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

std::string getRepr () const override
 Human readable representation of this source.
void generateTile (const std::shared_ptr< Image< WeightImage::PixelType > > &image, ImageTileWithType< WeightImage::PixelType > &tile, int x, int y, int width, int height) const final
void generateFromWeight (ImageTileWithType< WeightImage::PixelType > &tile, int width, int height, const ImageChunk< WeightImage::PixelType > &image_chunk) const
void generateFromVariance (ImageTileWithType< WeightImage::PixelType > &tile, int width, int height, const ImageChunk< WeightImage::PixelType > &image_chunk) const
void generateFromRms (ImageTileWithType< WeightImage::PixelType > &tile, int width, int height, const ImageChunk< WeightImage::PixelType > &image_chunk) const
Protected Member Functions inherited from SourceXtractor::ProcessingImageSource< WeightImage::PixelType >
std::string getImageRepr () const

Private Attributes

WeightImageConfig::WeightType m_weight_type
WeightImage::PixelType m_scaling

Detailed Description

Definition at line 187 of file WeightImageConfig.cpp.

Constructor & Destructor Documentation

◆ WeightMapImageSource()

SourceXtractor::WeightMapImageSource::WeightMapImageSource ( std::shared_ptr< Image< WeightImage::PixelType > > image,
WeightImageConfig::WeightType weight_type,
WeightImage::PixelType scaling )
inline

Definition at line 189 of file WeightImageConfig.cpp.

References m_scaling, m_weight_type, and SourceXtractor::ProcessingImageSource< WeightImage::PixelType >::ProcessingImageSource().

Here is the call graph for this function:

Member Function Documentation

◆ generateFromRms()

void SourceXtractor::WeightMapImageSource::generateFromRms ( ImageTileWithType< WeightImage::PixelType > & tile,
int width,
int height,
const ImageChunk< WeightImage::PixelType > & image_chunk ) const
inlineprotected

Definition at line 246 of file WeightImageConfig.cpp.

References SourceXtractor::ImageTileWithType< T >::getImage(), SourceXtractor::ImageChunk< T >::getValue(), and m_scaling.

Referenced by generateTile().

Here is the call graph for this function:

◆ generateFromVariance()

void SourceXtractor::WeightMapImageSource::generateFromVariance ( ImageTileWithType< WeightImage::PixelType > & tile,
int width,
int height,
const ImageChunk< WeightImage::PixelType > & image_chunk ) const
inlineprotected

Definition at line 235 of file WeightImageConfig.cpp.

References SourceXtractor::ImageTileWithType< T >::getImage(), SourceXtractor::ImageChunk< T >::getValue(), and m_scaling.

Referenced by generateTile().

Here is the call graph for this function:

◆ generateFromWeight()

void SourceXtractor::WeightMapImageSource::generateFromWeight ( ImageTileWithType< WeightImage::PixelType > & tile,
int width,
int height,
const ImageChunk< WeightImage::PixelType > & image_chunk ) const
inlineprotected

◆ generateTile()

◆ getRepr()

std::string SourceXtractor::WeightMapImageSource::getRepr ( ) const
inlineoverrideprotectedvirtual

Human readable representation of this source.

Implements SourceXtractor::ImageSource.

Definition at line 195 of file WeightImageConfig.cpp.

References SourceXtractor::ProcessingImageSource< WeightImage::PixelType >::getImageRepr().

Here is the call graph for this function:

Member Data Documentation

◆ m_scaling

WeightImage::PixelType SourceXtractor::WeightMapImageSource::m_scaling
private

◆ m_weight_type

WeightImageConfig::WeightType SourceXtractor::WeightMapImageSource::m_weight_type
private

Definition at line 258 of file WeightImageConfig.cpp.

Referenced by generateTile(), and WeightMapImageSource().


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