SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::MultiThresholdNode Class Reference
Inheritance diagram for SourceXtractor::MultiThresholdNode:
Collaboration diagram for SourceXtractor::MultiThresholdNode:

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 46 of file MultiThresholdPartitionStep.cpp.

Constructor & Destructor Documentation

◆ MultiThresholdNode()

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

Definition at line 49 of file MultiThresholdPartitionStep.cpp.

References m_is_split, m_pixel_list, and m_threshold.

Member Function Documentation

◆ addChild()

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

Definition at line 53 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 111 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 100 of file MultiThresholdPartitionStep.cpp.

References m_children, and m_pixel_list.

◆ flagAsSplit()

void SourceXtractor::MultiThresholdNode::flagAsSplit ( )
inline

Definition at line 88 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 67 of file MultiThresholdPartitionStep.cpp.

References m_children.

◆ getParent()

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

Definition at line 71 of file MultiThresholdPartitionStep.cpp.

References m_parent.

◆ getPixels()

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

Definition at line 96 of file MultiThresholdPartitionStep.cpp.

References m_pixel_list.

◆ getThreshold()

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

Definition at line 115 of file MultiThresholdPartitionStep.cpp.

References m_threshold.

◆ getTotalIntensity()

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

Definition at line 75 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 84 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 123 of file MultiThresholdPartitionStep.cpp.

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

◆ m_is_split

bool SourceXtractor::MultiThresholdNode::m_is_split
private

Definition at line 125 of file MultiThresholdPartitionStep.cpp.

Referenced by flagAsSplit(), isSplit(), and MultiThresholdNode().

◆ m_parent

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

Definition at line 122 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

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