Public Member Functions | Private Attributes
bwi_mapper::ConnectedComponents Class Reference

API for 8-connected connected components algorithm to find critical regions in a map demarcated by obstalces and critical lines Neigbouring critical regions help form the topological graph. Since this algorithm is 8-connected, any demarcating lines should be drawn 4-connected if they are single pixel. More...

#include <connected_components.h>

List of all members.

Public Member Functions

 ConnectedComponents (const cv::Mat &image, std::vector< int32_t > &component_map)
 Given an image map containing obstacles and demarcating critical lines, the constructor runs a critical components algorithm to find critical regions.
size_t getNumberComponents ()
 Returns the number of components obtained by running the critical components algorithm.

Private Attributes

size_t number_components_
 The number of critical components that are found is stored so that it can be retrieved later using getNumberComponents.

Detailed Description

API for 8-connected connected components algorithm to find critical regions in a map demarcated by obstalces and critical lines Neigbouring critical regions help form the topological graph. Since this algorithm is 8-connected, any demarcating lines should be drawn 4-connected if they are single pixel.

Definition at line 56 of file connected_components.h.


Constructor & Destructor Documentation

bwi_mapper::ConnectedComponents::ConnectedComponents ( const cv::Mat &  image,
std::vector< int32_t > &  component_map 
)

Given an image map containing obstacles and demarcating critical lines, the constructor runs a critical components algorithm to find critical regions.

Parameters:
imagemap with obstacles and critical lines
Returns:

Definition at line 56 of file connected_components.cpp.


Member Function Documentation

Returns the number of components obtained by running the critical components algorithm.

Definition at line 92 of file connected_components.cpp.


Member Data Documentation

The number of critical components that are found is stored so that it can be retrieved later using getNumberComponents.

Definition at line 80 of file connected_components.h.


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


bwi_mapper
Author(s): Piyush Khandelwal
autogenerated on Thu Jun 6 2019 17:57:21