MATLAB Answers

How can I extract/detect, separate the wall from the window using vertical and horizontal line detection?

3 views (last 30 days)
L
L on 12 Jul 2019
Edited: L on 15 Jul 2019
How can I extract/detect, separate the wall from the window using vertical and horizontal line detection?
Also, how can I separate the rectangular shape from the wall?
The goal is to separate the wall area from the window and later the rectangular shape area from the wall (if there is a shape) for any window/wall situation. Is it possible if I don't know in advance the dimensions, color, width of the window frame etc., only the shapes (which contain mostly horizontal and vertical lines)?
I hope someone can help me with this.
Thank you in advance!

  0 Comments

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 13 Jul 2019
Try edge() and imfill().
Is it your assignment?

  5 Comments

Show 2 older comments
L
L on 14 Jul 2019
Hello,
Thank you for the guiding.
I have tried with imbinarizee() and it gives a good result. Next, I have used the bwperim() with 26 connectivity, but the resut was almost same. Finally, I have applied the opening with disk SE. When in the scene are the wall and the window, it looks good, but the opening cut the part of the wall. When there is a shape in the scene, it is a problem. I have attached nyou the images.
Thank you.
L
L on 15 Jul 2019
Hello Image Analyst,
Is it possible to extract the window, or the wall (or the shape) using the bwconncomp(), regionprops() and checking the bounding box?
Thank you.
L
L on 15 Jul 2019
Hello,
I have reduced the scale and I've got the 2D and 3D edges with Sobel detector. Now, how can I separate/extract and fill the rectangle area on the right side of the long vertical line?
Thank you.

Sign in to comment.

More Answers (0)