필터 지우기
필터 지우기

How to detect the object on the right?

조회 수: 1 (최근 30일)
ijsonvjksrefdsb
ijsonvjksrefdsb 2023년 10월 9일
답변: Matt J 2023년 10월 9일
Hi, can I ask if Hough Transform is still viable in detecting the large object on the right of this image? I want to get its location and length automatically. I used the code from Extract line segments based on Hough transform - MATLAB houghlines (mathworks.com), though I'm not sure how to fit it to the image. Or if there are better choices for line detection that isn't a perfect line. Thank you

답변 (1개)

Matt J
Matt J 2023년 10월 9일
You can use bwareafilt(BW,1) to detect the largest object in the image.

Community Treasure Hunt

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

Start Hunting!

Translated by