SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::MultiThresholdNode Class Reference
Inheritance diagram for SourceXtractor::MultiThresholdNode:
[legend]
Collaboration diagram for SourceXtractor::MultiThresholdNode:
[legend]

Public Member Functions

 MultiThresholdNode (const std::vector< PixelCoordinate > &pixel_list, SeFloat threshold)
 
void addChild (std::shared_ptr< MultiThresholdNode > child)
 
bool contains (const Lutz::PixelGroup &pixel_group) const
 
const std::vector< std::shared_ptr< MultiThresholdNode > > & getChildren () const
 
std::shared_ptr< MultiThresholdNodegetParent () const
 
double getTotalIntensity (VectorImage< DetectionImage::PixelType > &image, const PixelCoordinate &offset) const
 
bool isSplit () const
 
void flagAsSplit ()
 
const std::vector< PixelCoordinate > & getPixels () const
 
void debugPrint () const
 
void addPixel (PixelCoordinate pixel)
 
SeFloat getThreshold () const
 
- Public Member Functions inherited from std::enable_shared_from_this< MultiThresholdNode >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
~enable_shared_from_this (T... args)
 

Private Attributes

std::vector< PixelCoordinatem_pixel_list
 
std::weak_ptr< MultiThresholdNodem_parent
 
std::vector< std::shared_ptr< MultiThresholdNode > > m_children
 
bool m_is_split
 
SeFloat m_threshold
 

Detailed Description

Definition at line 43 of file MultiThresholdPartitionStep.cpp.

Constructor & Destructor Documentation

◆ MultiThresholdNode()

SourceXtractor::MultiThresholdNode::MultiThresholdNode ( const std::vector< PixelCoordinate > &  pixel_list,
SeFloat  threshold 
)
inline

Definition at line 46 of file MultiThresholdPartitionStep.cpp.

Member Function Documentation

◆ addChild()

void SourceXtractor::MultiThresholdNode::addChild ( std::shared_ptr< MultiThresholdNode child)
inline

Definition at line 50 of file MultiThresholdPartitionStep.cpp.

References m_children, and std::enable_shared_from_this< MultiThresholdNode >::shared_from_this().

Here is the call graph for this function:

◆ addPixel()

void SourceXtractor::MultiThresholdNode::addPixel ( PixelCoordinate  pixel)
inline

Definition at line 108 of file MultiThresholdPartitionStep.cpp.

References m_pixel_list.

◆ contains()

bool SourceXtractor::MultiThresholdNode::contains ( const Lutz::PixelGroup pixel_group) const
inline

◆ debugPrint()

void SourceXtractor::MultiThresholdNode::debugPrint ( ) const
inline

Definition at line 97 of file MultiThresholdPartitionStep.cpp.

References m_children, and m_pixel_list.

◆ flagAsSplit()

void SourceXtractor::MultiThresholdNode::flagAsSplit ( )
inline

Definition at line 85 of file MultiThresholdPartitionStep.cpp.

References m_is_split, and m_parent.

◆ getChildren()

const std::vector<std::shared_ptr<MultiThresholdNode> >& SourceXtractor::MultiThresholdNode::getChildren ( ) const
inline

Definition at line 64 of file MultiThresholdPartitionStep.cpp.

References m_children.

◆ getParent()

std::shared_ptr<MultiThresholdNode> SourceXtractor::MultiThresholdNode::getParent ( ) const
inline

Definition at line 68 of file MultiThresholdPartitionStep.cpp.

References m_parent.

◆ getPixels()

const std::vector<PixelCoordinate>& SourceXtractor::MultiThresholdNode::getPixels ( ) const
inline

Definition at line 93 of file MultiThresholdPartitionStep.cpp.

References m_pixel_list.

◆ getThreshold()

SeFloat SourceXtractor::MultiThresholdNode::getThreshold ( ) const
inline

Definition at line 112 of file MultiThresholdPartitionStep.cpp.

References m_threshold.

◆ getTotalIntensity()

double SourceXtractor::MultiThresholdNode::getTotalIntensity ( VectorImage< DetectionImage::PixelType > &  image,
const PixelCoordinate offset 
) const
inline

Definition at line 72 of file MultiThresholdPartitionStep.cpp.

References SourceXtractor::VectorImage< T >::getValue(), m_pixel_list, and m_threshold.

Here is the call graph for this function:

◆ isSplit()

bool SourceXtractor::MultiThresholdNode::isSplit ( ) const
inline

Definition at line 81 of file MultiThresholdPartitionStep.cpp.

References m_is_split.

Member Data Documentation

◆ m_children

std::vector<std::shared_ptr<MultiThresholdNode> > SourceXtractor::MultiThresholdNode::m_children
private

Definition at line 120 of file MultiThresholdPartitionStep.cpp.

Referenced by addChild(), debugPrint(), and getChildren().

◆ m_is_split

bool SourceXtractor::MultiThresholdNode::m_is_split
private

Definition at line 122 of file MultiThresholdPartitionStep.cpp.

Referenced by flagAsSplit(), and isSplit().

◆ m_parent

std::weak_ptr<MultiThresholdNode> SourceXtractor::MultiThresholdNode::m_parent
private

Definition at line 119 of file MultiThresholdPartitionStep.cpp.

Referenced by flagAsSplit(), and getParent().

◆ m_pixel_list

std::vector<PixelCoordinate> SourceXtractor::MultiThresholdNode::m_pixel_list
private

◆ m_threshold

SeFloat SourceXtractor::MultiThresholdNode::m_threshold
private

Definition at line 124 of file MultiThresholdPartitionStep.cpp.

Referenced by getThreshold(), and getTotalIntensity().


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