SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::WeightImageConfig Class Reference

#include <WeightImageConfig.h>

Inheritance diagram for SourceXtractor::WeightImageConfig:
Collaboration diagram for SourceXtractor::WeightImageConfig:

Public Types

enum class  WeightType {
  WEIGHT_TYPE_NONE , WEIGHT_TYPE_FROM_BACKGROUND , WEIGHT_TYPE_RMS , WEIGHT_TYPE_VARIANCE ,
  WEIGHT_TYPE_WEIGHT
}
Public Types inherited from Euclid::Configuration::Configuration
enum  State
typedef std::vector< boost::program_options::option_description > OptionDescriptionList
typedef std::map< std::string, boost::program_options::variable_value > UserValues

Public Member Functions

virtual ~WeightImageConfig ()=default
 WeightImageConfig (long manager_id)
std::map< std::string, Configuration::OptionDescriptionListgetProgramOptions () 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
 Configuration (long manager_id)
virtual ~Configuration ()=default
virtual void preInitialize (const UserValues &args)
virtual void postInitialize (const UserValues &args)
const std::set< std::type_index > & getDependencies ()
StategetCurrentState ()
State getCurrentState () const

Static Public Member Functions

static std::shared_ptr< WeightImageconvertWeightMap (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::PixelTypem_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

Additional Inherited Members

Protected Member Functions inherited from Euclid::Configuration::Configuration
void declareDependency ()
T & getDependency ()
const T & getDependency () const

Detailed Description

Definition at line 32 of file WeightImageConfig.h.

Member Enumeration Documentation

◆ WeightType

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

◆ ~WeightImageConfig()

virtual SourceXtractor::WeightImageConfig::~WeightImageConfig ( )
virtualdefault

◆ WeightImageConfig()

SourceXtractor::WeightImageConfig::WeightImageConfig ( long manager_id)
explicit

Member Function Documentation

◆ convertWeightMap()

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(), std::make_shared(), WEIGHT_TYPE_FROM_BACKGROUND, and WEIGHT_TYPE_NONE.

Referenced by initialize().

Here is the call graph for this function:

◆ getProgramOptions()

◆ getWeightImage()

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.

◆ getWeightThreshold()

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.

◆ getWeightType()

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

Definition at line 58 of file WeightImageConfig.h.

References m_weight_type.

◆ initialize()

◆ isWeightAbsolute()

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

Definition at line 62 of file WeightImageConfig.h.

References m_absolute_weight.

◆ symmetryUsage()

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

Definition at line 74 of file WeightImageConfig.h.

References m_symmetry_usage.

Member Data Documentation

◆ m_absolute_weight

bool SourceXtractor::WeightImageConfig::m_absolute_weight
private

Definition at line 86 of file WeightImageConfig.h.

Referenced by initialize(), isWeightAbsolute(), and WeightImageConfig().

◆ m_scaled_weight_thresholds

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

Definition at line 83 of file WeightImageConfig.h.

Referenced by getWeightThreshold(), and initialize().

◆ m_symmetry_usage

bool SourceXtractor::WeightImageConfig::m_symmetry_usage
private

Definition at line 89 of file WeightImageConfig.h.

Referenced by initialize(), symmetryUsage(), and WeightImageConfig().

◆ m_weight_images

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().

◆ m_weight_scaling

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

Definition at line 87 of file WeightImageConfig.h.

Referenced by initialize(), and WeightImageConfig().

◆ m_weight_threshold

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

Definition at line 88 of file WeightImageConfig.h.

Referenced by getWeightThreshold(), initialize(), and WeightImageConfig().

◆ m_weight_type

WeightType SourceXtractor::WeightImageConfig::m_weight_type
private

Definition at line 85 of file WeightImageConfig.h.

Referenced by getWeightType(), initialize(), and WeightImageConfig().


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