Identification of rooms in a floorplan
Ältere Kommentare anzeigen
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 Kommentare
Matt J
am 19 Mai 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
am 19 Mai 2020
Matt J
am 19 Mai 2020
And what about the doorways?
CHINTALA NIRMAL SRINIVAS
am 20 Mai 2020
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Semantic Segmentation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




