필터 지우기
필터 지우기

remove extra objects detect

조회 수: 3 (최근 30일)
mary khaliji
mary khaliji 2015년 6월 5일
답변: Dima Lisin 2015년 6월 5일
Hi every body. How I can remove extra objects detect by vision.ForegroundDetector . for example in original image (attached here) we have a cord that also detected (attached here) in my program, But I just want detect people. How I can remove that.

답변 (2개)

Image Analyst
Image Analyst 2015년 6월 5일
So some kind of filtering like based on size or shape. See my Image Segmentation Tutorial for a demo on how to use filtering on detected regions. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

Dima Lisin
Dima Lisin 2015년 6월 5일
You can use morphological operations for that. imopen will remove smaller blobs. imclose will fill in small gaps. If there are still noisy blobs left after that, you can use regionprops to determine the area of all the objects, and exclude the ones that are too big or too small.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by