필터 지우기
필터 지우기

Remove reflection from an Image

조회 수: 21 (최근 30일)
Abhishek Mishra
Abhishek Mishra 2023년 3월 2일
댓글: Image Analyst 2023년 3월 2일
I have a video frame from which I would like top remove the reflection and select the longest edge. How can I achieve this?

답변 (1개)

Image Analyst
Image Analyst 2023년 3월 2일
Adjust your lighting. And try putting polarizers in front of your lamp, and a rotatable one in front of your camera. It's far, far better to prevent the reflections in the first place than to try to alter your image to remove them. You will definitely get a better image if you prevent them than if you try to "fix" your image post-capture.
  댓글 수: 3
John D'Errico
John D'Errico 2023년 3월 2일
Total agreement. Far better to not allow an artifact into your image, than it is to remove it once it is there.
Image Analyst
Image Analyst 2023년 3월 2일
Sorry, there is no universal "reflection removal and longest edge finding" algorithm. The best you can do is to threshold for bright stuff and then use regionfill. Or better yet use a content-aware regionfill like Photoshop has. As far as finding lines you can try the examples in the documentation for hough and houghlines.

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

Community Treasure Hunt

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

Start Hunting!

Translated by