SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::BFSSegmentation Class Reference

Implements a Segmentation based on the BFS algorithm. More...

#include <BFSSegmentation.h>

Inheritance diagram for SourceXtractor::BFSSegmentation:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::BFSSegmentation:
Collaboration graph
[legend]

Classes

struct  Tile
 
class  VisitedMap
 

Public Member Functions

virtual ~BFSSegmentation ()=default
 
 BFSSegmentation (std::shared_ptr< SourceFactory > source_factory, int max_delta)
 
void labelImage (Segmentation::LabellingListener &listener, std::shared_ptr< const DetectionImageFrame > frame) override
 
- Public Member Functions inherited from SourceXtractor::Segmentation::Labelling
virtual ~Labelling ()=default
 
 Labelling ()
 

Private Member Functions

void labelSource (PixelCoordinate pc, Segmentation::LabellingListener &listener, DetectionImage &detection_image, VisitedMap &visited_map) const
 
std::vector< BFSSegmentation::TilegetTiles (const DetectionImage &image) const
 

Private Attributes

std::shared_ptr< SourceFactorym_source_factory
 
int m_max_delta
 

Detailed Description

Implements a Segmentation based on the BFS algorithm.

Definition at line 31 of file BFSSegmentation.h.

Constructor & Destructor Documentation

◆ ~BFSSegmentation()

virtual SourceXtractor::BFSSegmentation::~BFSSegmentation ( )
virtualdefault

◆ BFSSegmentation()

SourceXtractor::BFSSegmentation::BFSSegmentation ( std::shared_ptr< SourceFactory > source_factory,
int max_delta )
inline

Definition at line 36 of file BFSSegmentation.h.

Member Function Documentation

◆ getTiles()

std::vector< BFSSegmentation::Tile > SourceXtractor::BFSSegmentation::getTiles ( const DetectionImage & image) const
private

Definition at line 109 of file BFSSegmentation.cpp.

References SourceXtractor::TileManager::getInstance(), std::max(), std::min(), x, and y.

Referenced by labelImage().

Here is the call graph for this function:

◆ labelImage()

void SourceXtractor::BFSSegmentation::labelImage ( Segmentation::LabellingListener & listener,
std::shared_ptr< const DetectionImageFrame > frame )
overridevirtual

Implements SourceXtractor::Segmentation::Labelling.

Definition at line 39 of file BFSSegmentation.cpp.

References getTiles(), labelSource(), x, and y.

Here is the call graph for this function:

◆ labelSource()

void SourceXtractor::BFSSegmentation::labelSource ( PixelCoordinate pc,
Segmentation::LabellingListener & listener,
DetectionImage & detection_image,
VisitedMap & visited_map ) const
private

Definition at line 59 of file BFSSegmentation.cpp.

References m_max_delta, m_source_factory, std::max(), std::min(), and std::move().

Referenced by labelImage().

Here is the call graph for this function:

Member Data Documentation

◆ m_max_delta

int SourceXtractor::BFSSegmentation::m_max_delta
private

Definition at line 76 of file BFSSegmentation.h.

Referenced by labelSource().

◆ m_source_factory

std::shared_ptr<SourceFactory> SourceXtractor::BFSSegmentation::m_source_factory
private

Definition at line 75 of file BFSSegmentation.h.

Referenced by labelSource().


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