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

2 次查看(过去 30 天)
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!

采纳的回答

Image Analyst
Image Analyst 2019-7-13
Try edge() and imfill().
Is it your assignment?
  5 个评论
L
L 2019-7-15
编辑:L 2019-7-15
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 2019-7-15
编辑:L 2019-7-15
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.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by