SourceXtractorPlusPlus
0.15
Please provide a description of the project.
|
Implements a Segmentation based on the BFS algorithm. More...
#include <BFSSegmentation.h>
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 |
![]() | |
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.
|
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().
|
overridevirtual |
Implements SourceXtractor::Segmentation::Labelling.
Definition at line 39 of file BFSSegmentation.cpp.
References getTiles(), labelSource(), x, and y.
|
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::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 labelSource().
|
private |
Definition at line 75 of file BFSSegmentation.h.
Referenced by labelSource().