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)
Best Answer