|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
Implements a Segmentation based on the BFS algorithm. More...
#include <BFSSegmentation.h>


Classes | |
| class | VisitedMap |
| struct | Tile |
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::Tile > | getTiles (const DetectionImage &image) const |
Private Attributes | |
| std::shared_ptr< SourceFactory > | m_source_factory |
| int | m_max_delta |
Implements a Segmentation based on the BFS algorithm.
Definition at line 31 of file BFSSegmentation.h.
|
virtualdefault |
|
inline |
Definition at line 36 of file BFSSegmentation.h.
References m_max_delta, and m_source_factory.
|
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(), and std::min().
Referenced by labelImage().

|
overridevirtual |
Implements SourceXtractor::Segmentation::Labelling.
Definition at line 39 of file BFSSegmentation.cpp.
References getTiles(), labelSource(), and SourceXtractor::BFSSegmentation::VisitedMap::wasVisited().

|
private |
Definition at line 59 of file BFSSegmentation.cpp.
References std::vector< T >::back(), std::vector< T >::emplace_back(), m_max_delta, m_source_factory, SourceXtractor::PixelCoordinate::m_x, SourceXtractor::PixelCoordinate::m_y, SourceXtractor::BFSSegmentation::VisitedMap::markVisited(), std::max(), std::min(), std::move(), std::vector< T >::pop_back(), SourceXtractor::Segmentation::LabellingListener::publishSource(), std::vector< T >::size(), and SourceXtractor::BFSSegmentation::VisitedMap::wasVisited().
Referenced by labelImage().

|
private |
Definition at line 76 of file BFSSegmentation.h.
Referenced by BFSSegmentation(), and labelSource().
|
private |
Definition at line 75 of file BFSSegmentation.h.
Referenced by BFSSegmentation(), and labelSource().