SourceXtractorPlusPlus  0.16
Please provide a description of the project.
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:
[legend]
Collaboration diagram for SourceXtractor::BFSSegmentation:
[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 std::vector< T >::emplace_back(), SourceXtractor::HilbertCurve::getCurve(), SourceXtractor::Image< T >::getHeight(), SourceXtractor::TileManager::getInstance(), SourceXtractor::Image< T >::getWidth(), 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(), SourceXtractor::BFSSegmentation::VisitedMap::wasVisited(), 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

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: