Identification of rooms in a floorplan
Show older comments
I have a floorplan image with only walls. I want to identify the room coordinates of the floorplan.
This code actually closes the doors and identifies the rooms in the floorplan. This works well when shape of the rooms is rectangles. But It does not work well when the shape is either trapezium or L shape. Can somebody help me please?
Also it is not closing all the doors properly.
load('Walls')
e=ones(1,105);
A=imclose(imclose(~Image,e),e.');
B=imfill(A,'holes')&~A;
imshow(B)

4 Comments
Matt J
on 19 May 2020
Will the doorways always be horizontal/vertical? And what example of an " L shape" didn't work? It seems to have worked well on the L-shaped flllor plan here:
CHINTALA NIRMAL SRINIVAS
on 19 May 2020
Matt J
on 19 May 2020
And what about the doorways?
CHINTALA NIRMAL SRINIVAS
on 20 May 2020
Accepted Answer
More Answers (0)
Categories
Find more on Semantic Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



