필터 지우기
필터 지우기

How can I extract the frame around the windows?

조회 수: 3 (최근 30일)
L
L 2019년 7월 17일
댓글: Image Analyst 2019년 10월 14일
Hello,
I need to extract the frame on the wall around the window. How can I do that? I have tried with edge detection and binarization, but I have got always a different result. There are images, where even the edges are not recognizable. But, there are images full with different edges where I can not eliminate the redundant components.
I hope someone can help me.
Thank you.
  댓글 수: 6
L
L 2019년 10월 13일
Whatever, the image should be in color, but it could be in grayscale too.
Image Analyst
Image Analyst 2019년 10월 13일
Could be very difficult if the input could be any window in the world with any aspect ratio, any frame color or pattern and any window color or pattern. Can I ask why you need/want to do this?
Do you have hundreds of images to be used as a training set in deep learning? Would you be willing to use a deep learning approach?

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2019년 10월 13일
I suggest you just call rbbox(), imrect(), or imcrop() for the simplest solution. Anything else is not going to be "basic".
  댓글 수: 2
L
L 2019년 10월 13일
I am familiar with imrect and imcrop functions, but I have never used the rbbox. I will check it. Thank you.
Image Analyst
Image Analyst 2019년 10월 14일
It's the same except that it "finishes" right away and does not ask you to adjust handles on the edges of the box or ask you to confirm the selection - it just takes it immediately.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by