SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::BFSSegmentation Class Reference

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

#include <BFSSegmentation.h>

Inheritance diagram for SourceXtractor::BFSSegmentation:
Collaboration diagram for SourceXtractor::BFSSegmentation:

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.

References m_max_delta, and m_source_factory.

Member Function Documentation

◆ getTiles()

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

◆ 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(), and SourceXtractor::BFSSegmentation::VisitedMap::wasVisited().

Here is the call graph for this function:

◆ labelSource()

Member Data Documentation

◆ m_max_delta

int SourceXtractor::BFSSegmentation::m_max_delta
private

Definition at line 76 of file BFSSegmentation.h.

Referenced by BFSSegmentation(), and labelSource().

◆ m_source_factory

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

Definition at line 75 of file BFSSegmentation.h.

Referenced by BFSSegmentation(), and labelSource().


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