How to find out overlapping region between bounding boxes?
7 ビュー (過去 30 日間)
古いコメントを表示
Hi
Does anyone know if there's a way to find out whether there's an overlap between two bounding boxes drawn around individual connected components??
I need to remove the areas which do not have any overlap with other bounding boxes. which is the same as making the white pixels in those black... I need help with these steps.
Please guide! Any help is greatly appreciated, thanks a lot!
0 件のコメント
回答 (1 件)
Image Analyst
2012 年 10 月 10 日
overlappedPixels = binaryImage1 & binaryImage2; % Find overlap.
grayImage(overlappedPixels) = 0; % Set to zero.
5 件のコメント
Image Analyst
2012 年 11 月 1 日
Just do a double loop over all blobs, checking the x1,y1,x2,y2 coordinates of each of the two bounding boxes and see which bounding boxes intersect. It's just a dumb, brute force, intuitive and straightforward, easy approach but it will work, and it will work fast.
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!