SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SourceXtractor::WeightImageConfig Class Reference

#include <WeightImageConfig.h>

Inheritance diagram for SourceXtractor::WeightImageConfig:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::WeightImageConfig:
Collaboration graph
[legend]

Public Types

enum  WeightType {
  WeightType::WEIGHT_TYPE_NONE, WeightType::WEIGHT_TYPE_FROM_BACKGROUND, WeightType::WEIGHT_TYPE_RMS, WeightType::WEIGHT_TYPE_VARIANCE,
  WeightType::WEIGHT_TYPE_WEIGHT
}
 

Public Member Functions

virtual ~WeightImageConfig ()=default
 
 WeightImageConfig (long manager_id)
 
std::map< std::string,
Configuration::OptionDescriptionList > 
getProgramOptions () override
 
void initialize (const UserValues &args) override
 
std::shared_ptr< WeightImagegetWeightImage (size_t index=0) const
 
WeightType getWeightType () const
 
bool isWeightAbsolute () const
 
WeightImage::PixelType getWeightThreshold (size_t index=0) const
 
bool symmetryUsage () const
 
- Public Member Functions inherited from Euclid::Configuration::Configuration
virtual void preInitialize (const UserValues &args)
 

Static Public Member Functions

static std::shared_ptr
< WeightImage
convertWeightMap (std::shared_ptr< WeightImage > weight_image, WeightType weight_type, WeightImage::PixelType scaling=1)
 

Private Attributes

std::vector< std::shared_ptr
< WeightImage > > 
m_weight_images
 
std::vector
< WeightImage::PixelType
m_scaled_weight_thresholds
 
WeightType m_weight_type
 
bool m_absolute_weight
 
WeightImage::PixelType m_weight_scaling
 
WeightImage::PixelType m_weight_threshold
 
bool m_symmetry_usage
 

Detailed Description

Definition at line 32 of file WeightImageConfig.h.

Member Enumeration Documentation

Enumerator
WEIGHT_TYPE_NONE 
WEIGHT_TYPE_FROM_BACKGROUND 
WEIGHT_TYPE_RMS 
WEIGHT_TYPE_VARIANCE 
WEIGHT_TYPE_WEIGHT 

Definition at line 36 of file WeightImageConfig.h.

Constructor & Destructor Documentation

virtual SourceXtractor::WeightImageConfig::~WeightImageConfig ( )
virtualdefault
SourceXtractor::WeightImageConfig::WeightImageConfig ( long  manager_id)
explicit

Definition at line 55 of file WeightImageConfig.cpp.

Member Function Documentation

std::shared_ptr< WeightImage > SourceXtractor::WeightImageConfig::convertWeightMap ( std::shared_ptr< WeightImage weight_image,
WeightType  weight_type,
WeightImage::PixelType  scaling = 1 
)
static

Definition at line 264 of file WeightImageConfig.cpp.

References SourceXtractor::BufferedImage< T >::create(), WEIGHT_TYPE_FROM_BACKGROUND, and WEIGHT_TYPE_NONE.

Referenced by initialize().

Here is the call graph for this function:

std::map< std::string, Configuration::OptionDescriptionList > SourceXtractor::WeightImageConfig::getProgramOptions ( )
overridevirtual
std::shared_ptr<WeightImage> SourceXtractor::WeightImageConfig::getWeightImage ( size_t  index = 0) const
inline

Definition at line 50 of file WeightImageConfig.h.

References m_weight_images.

WeightImage::PixelType SourceXtractor::WeightImageConfig::getWeightThreshold ( size_t  index = 0) const
inline

Definition at line 66 of file WeightImageConfig.h.

References m_scaled_weight_thresholds, and m_weight_threshold.

WeightType SourceXtractor::WeightImageConfig::getWeightType ( ) const
inline

Definition at line 58 of file WeightImageConfig.h.

References m_weight_type.

void SourceXtractor::WeightImageConfig::initialize ( const UserValues &  args)
overridevirtual
bool SourceXtractor::WeightImageConfig::isWeightAbsolute ( ) const
inline

Definition at line 62 of file WeightImageConfig.h.

References m_absolute_weight.

bool SourceXtractor::WeightImageConfig::symmetryUsage ( ) const
inline

Definition at line 74 of file WeightImageConfig.h.

References m_symmetry_usage.

Member Data Documentation

bool SourceXtractor::WeightImageConfig::m_absolute_weight
private

Definition at line 86 of file WeightImageConfig.h.

Referenced by initialize(), and isWeightAbsolute().

std::vector<WeightImage::PixelType> SourceXtractor::WeightImageConfig::m_scaled_weight_thresholds
private

Definition at line 83 of file WeightImageConfig.h.

Referenced by getWeightThreshold(), and initialize().

bool SourceXtractor::WeightImageConfig::m_symmetry_usage
private

Definition at line 89 of file WeightImageConfig.h.

Referenced by initialize(), and symmetryUsage().

std::vector<std::shared_ptr<WeightImage> > SourceXtractor::WeightImageConfig::m_weight_images
private

Definition at line 82 of file WeightImageConfig.h.

Referenced by getWeightImage(), and initialize().

WeightImage::PixelType SourceXtractor::WeightImageConfig::m_weight_scaling
private

Definition at line 87 of file WeightImageConfig.h.

Referenced by initialize().

WeightImage::PixelType SourceXtractor::WeightImageConfig::m_weight_threshold
private

Definition at line 88 of file WeightImageConfig.h.

Referenced by getWeightThreshold(), and initialize().

WeightType SourceXtractor::WeightImageConfig::m_weight_type
private

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