SourceXtractorPlusPlus  0.14
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SourceXtractor::WeightMapImageSource Class Reference
Inheritance diagram for SourceXtractor::WeightMapImageSource:
[legend]
Collaboration diagram for SourceXtractor::WeightMapImageSource:
[legend]

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. More...
 
int getHeight () const override
 Returns the height of the image in pixels. More...
 
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 (std::string key, 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. More...
 
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 145 of file WeightImageConfig.cpp.

Constructor & Destructor Documentation

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

Definition at line 147 of file WeightImageConfig.cpp.

Member Function Documentation

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

Definition at line 204 of file WeightImageConfig.cpp.

References SourceXtractor::ImageTileWithType< T >::getImage(), SourceXtractor::ImageChunk< T >::getValue(), ModelFitting::height, and ModelFitting::width.

Here is the call graph for this function:

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

Definition at line 193 of file WeightImageConfig.cpp.

References SourceXtractor::ImageTileWithType< T >::getImage(), SourceXtractor::ImageChunk< T >::getValue(), ModelFitting::height, and ModelFitting::width.

Here is the call graph for this function:

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

Definition at line 177 of file WeightImageConfig.cpp.

References SourceXtractor::ImageTileWithType< T >::getImage(), SourceXtractor::ImageChunk< T >::getValue(), ModelFitting::height, and ModelFitting::width.

Here is the call graph for this function:

void SourceXtractor::WeightMapImageSource::generateTile ( const std::shared_ptr< Image< WeightImage::PixelType >> &  image,
ImageTileWithType< WeightImage::PixelType > &  tile,
int  x,
int  y,
int  width,
int  height 
) const
inlinefinalprotectedvirtual
std::string SourceXtractor::WeightMapImageSource::getRepr ( ) const
inlineoverrideprotectedvirtual

Human readable representation of this source.

Implements SourceXtractor::ImageSource.

Definition at line 153 of file WeightImageConfig.cpp.

Member Data Documentation

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

Definition at line 217 of file WeightImageConfig.cpp.

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

Definition at line 216 of file WeightImageConfig.cpp.


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