This repository is made for the Computer Vision course project - Jan 2019.
Dependencies:
Detecting rooms of a floor plan.
- Make it square
- Convert to black-and-white
- Line Segment Detection (LSD)
- Morphology (Erosion, Open)
- Connected Components
First, the input image is converted into a squared black-and-white image.
Then the lines of the squared image are detected using the LSD algorithm.
Every line shorter than a predefined value (first_line_tresh
) is removed, and the lines with the same linear equation are connected with new lines.
The same step is repeated after the image is rotated for 90 degrees.
Next, to make the new lines larger, the morphology operations (erode and open) are applied to the image.
Finally, using the connected component algorithm with 4-way connectivity, the connected areas (rooms) are detected and filled with the same colour.
- Automatic Room Segmentation from Unstructured 3D Data of Indoor Environments
- Room Segmentation: Survey, Implementation, and Analysis
- Coverage Path Planning and Room Segmentation in Indoor Environments using the Constriction Decomposition Method
- Automatic Room Segmentation of 3D Laser Data Using Morphological Processing
- Human-Like Room Segmentation for Domestic Cleaning Robots