필터 지우기
필터 지우기

creating bounding box for pair of objects which are separated by a distance?

조회 수: 1 (최근 30일)
srikanth
srikanth 2012년 9월 11일
Hi, I am doing a project on nighttime vehicle detection. I have extracted vehicle light components by performing segmentation. I have created bounding boxes for individual light components of vehicles. I have extracted the probable pair of lights for pairing vehicle light components which may belong to same vehicle. But, i couldn't able to create bounding boxes for these pairs i have extracted. Please, can you help me?
Thank you.

답변 (1개)

Image Analyst
Image Analyst 2012년 9월 11일
You can use any(binaryImage, 1 or 2) to find which rows and columns contain "set" pixels - the "true" pixels in your segmented binary image. Then use find(vec, 1, 'first' or 'last') on the vector that any() returns to find out the actual first and last row and column (i.e. the bounding box). Then use imcrop() to crop it out into a separate image.

카테고리

Help CenterFile Exchange에서 Feature Detection and Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by