creating bounding box for pair of objects which are separated by a distance?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Image Analyst
am 11 Sep. 2012
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Tracking and Motion Estimation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!