SourceXtractorPlusPlus  0.11
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::SegmentationConfig Class Reference

Used to select a Segmentation algorithm. More...

#include <SegmentationConfig.h>

Inheritance diagram for SourceXtractor::SegmentationConfig:
[legend]
Collaboration diagram for SourceXtractor::SegmentationConfig:
[legend]

Public Types

enum  Algorithm { Algorithm::UNKNOWN, Algorithm::LUTZ }
 

Public Member Functions

virtual ~SegmentationConfig ()=default
 Destructor. More...
 
 SegmentationConfig (long manager_id)
 Constructs a new SegmentationConfig object. More...
 
std::map< std::string,
Configuration::OptionDescriptionList > 
getProgramOptions () override
 
void preInitialize (const UserValues &args) override
 
void initialize (const UserValues &args) override
 
Algorithm getAlgorithmOption () const
 
int getLutzWindowSize () const
 
bool isFilteringEnabled () const
 
std::shared_ptr
< DetectionImageFrame::ImageFilter
getFilter () const
 

Private Member Functions

std::shared_ptr
< DetectionImageFrame::ImageFilter
getDefaultFilter () const
 
std::shared_ptr
< DetectionImageFrame::ImageFilter
loadFilter (const std::string &filename) const
 
std::shared_ptr
< DetectionImageFrame::ImageFilter
loadFITSFilter (const std::string &filename) const
 
std::shared_ptr
< DetectionImageFrame::ImageFilter
loadASCIIFilter (const std::string &filename) const
 

Private Attributes

Algorithm m_selected_algorithm
 
std::shared_ptr
< DetectionImageFrame::ImageFilter
m_filter
 
int m_lutz_window_size
 

Detailed Description

Used to select a Segmentation algorithm.

Definition at line 36 of file SegmentationConfig.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
LUTZ 

Definition at line 39 of file SegmentationConfig.h.

Constructor & Destructor Documentation

virtual SourceXtractor::SegmentationConfig::~SegmentationConfig ( )
virtualdefault

Destructor.

SourceXtractor::SegmentationConfig::SegmentationConfig ( long  manager_id)

Constructs a new SegmentationConfig object.

Definition at line 55 of file SegmentationConfig.cpp.

References UNKNOWN.

Member Function Documentation

Algorithm SourceXtractor::SegmentationConfig::getAlgorithmOption ( ) const
inline

Definition at line 56 of file SegmentationConfig.h.

References m_selected_algorithm.

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::getDefaultFilter ( ) const
private

Definition at line 98 of file SegmentationConfig.cpp.

References SourceXtractor::VectorImage< T >::create(), Elements::Logging::info(), and SourceXtractor::segConfigLogger.

Referenced by preInitialize().

Here is the call graph for this function:

std::shared_ptr<DetectionImageFrame::ImageFilter> SourceXtractor::SegmentationConfig::getFilter ( ) const
inline

Definition at line 68 of file SegmentationConfig.h.

References m_filter.

int SourceXtractor::SegmentationConfig::getLutzWindowSize ( ) const
inline

Definition at line 60 of file SegmentationConfig.h.

References m_lutz_window_size.

std::map< std::string, Configuration::OptionDescriptionList > SourceXtractor::SegmentationConfig::getProgramOptions ( )
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 59 of file SegmentationConfig.cpp.

References std::string::c_str(), SourceXtractor::SEGMENTATION_ALGORITHM, SourceXtractor::SEGMENTATION_DISABLE_FILTERING, SourceXtractor::SEGMENTATION_FILTER, and SourceXtractor::SEGMENTATION_LUTZ_WINDOW_SIZE.

Here is the call graph for this function:

void SourceXtractor::SegmentationConfig::initialize ( const UserValues &  args)
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 94 of file SegmentationConfig.cpp.

References LUTZ, and m_selected_algorithm.

bool SourceXtractor::SegmentationConfig::isFilteringEnabled ( ) const
inline

Definition at line 64 of file SegmentationConfig.h.

References m_filter.

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::loadASCIIFilter ( const std::string filename) const
private
std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::loadFilter ( const std::string filename) const
private

Definition at line 116 of file SegmentationConfig.cpp.

References std::string::compare(), std::string::length(), loadASCIIFilter(), and loadFITSFilter().

Referenced by preInitialize().

Here is the call graph for this function:

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::loadFITSFilter ( const std::string filename) const
private

Definition at line 130 of file SegmentationConfig.cpp.

References Elements::Logging::info(), and SourceXtractor::segConfigLogger.

Referenced by loadFilter().

Here is the call graph for this function:

void SourceXtractor::SegmentationConfig::preInitialize ( const UserValues &  args)
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 72 of file SegmentationConfig.cpp.

References getDefaultFilter(), loadFilter(), m_filter, m_lutz_window_size, SourceXtractor::SEGMENTATION_ALGORITHM, SourceXtractor::SEGMENTATION_DISABLE_FILTERING, SourceXtractor::SEGMENTATION_FILTER, and SourceXtractor::SEGMENTATION_LUTZ_WINDOW_SIZE.

Here is the call graph for this function:

Member Data Documentation

std::shared_ptr<DetectionImageFrame::ImageFilter> SourceXtractor::SegmentationConfig::m_filter
private

Definition at line 79 of file SegmentationConfig.h.

Referenced by getFilter(), isFilteringEnabled(), and preInitialize().

int SourceXtractor::SegmentationConfig::m_lutz_window_size
private

Definition at line 81 of file SegmentationConfig.h.

Referenced by getLutzWindowSize(), and preInitialize().

Algorithm SourceXtractor::SegmentationConfig::m_selected_algorithm
private

Definition at line 78 of file SegmentationConfig.h.

Referenced by getAlgorithmOption(), and initialize().


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