SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
< MultiThresholdNode
getParent () const
 
double getTotalIntensity (DetectionImage &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 41 of file MultiThresholdPartitionStep.cpp.

Constructor & Destructor Documentation

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

Definition at line 44 of file MultiThresholdPartitionStep.cpp.

Member Function Documentation

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

Definition at line 48 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:

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

Definition at line 106 of file MultiThresholdPartitionStep.cpp.

References m_pixel_list.

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

Definition at line 95 of file MultiThresholdPartitionStep.cpp.

References m_children, and m_pixel_list.

void SourceXtractor::MultiThresholdNode::flagAsSplit ( )
inline

Definition at line 83 of file MultiThresholdPartitionStep.cpp.

References m_is_split, and m_parent.

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

Definition at line 62 of file MultiThresholdPartitionStep.cpp.

References m_children.

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

Definition at line 66 of file MultiThresholdPartitionStep.cpp.

References m_parent.

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

Definition at line 91 of file MultiThresholdPartitionStep.cpp.

References m_pixel_list.

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

Definition at line 110 of file MultiThresholdPartitionStep.cpp.

References m_threshold.

double SourceXtractor::MultiThresholdNode::getTotalIntensity ( DetectionImage image,
const PixelCoordinate offset 
) const
inline

Definition at line 70 of file MultiThresholdPartitionStep.cpp.

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

Here is the call graph for this function:

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

Definition at line 79 of file MultiThresholdPartitionStep.cpp.

References m_is_split.

Member Data Documentation

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

Definition at line 118 of file MultiThresholdPartitionStep.cpp.

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

bool SourceXtractor::MultiThresholdNode::m_is_split
private

Definition at line 120 of file MultiThresholdPartitionStep.cpp.

Referenced by flagAsSplit(), and isSplit().

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

Definition at line 117 of file MultiThresholdPartitionStep.cpp.

Referenced by flagAsSplit(), and getParent().

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

Definition at line 122 of file MultiThresholdPartitionStep.cpp.

Referenced by getThreshold(), and getTotalIntensity().


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