How identify coordinates of more bounding boxes
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I used the autoBound function to draw bounding box with the below code (the result is in the attached image). How I can identify the (x, y) coordinates, height and width, for each yellow rectangle shown in the attached picture?
togglefig('Image', true)
Masca_Componente_El = imshow(createMaskBottom_PCB7(pcb));
%Label the components on the Bottom with help of Mask
Componente_El = imshow(pcb);
BBs = autoBound(Componente_El, @createMaskBottom_PCB7);
drawBoundingBoxes(BBs, 'BOTTOM', '7');
3 Kommentare
DGM
am 2 Jul. 2021
To clarify, autoBound() doesn't appear to be part of any Matlab toolbox or FEX submission. If nobody knows what it is, nobody can tell you how to use it.
That said, I wouldn't be surprised if the object created by autoBound() had some sort of position property.
Brett Shoelson
am 3 Okt. 2023
Bearbeitet: Brett Shoelson
am 3 Okt. 2023
Hi all,
I wrote the functionality you're referring to: togglefig, autoBound, drawBoundingBoxes, .... They're part of a large collection of utilities that I am working on sharing in the public domain. If you want to contact me directly, I will be happy to share them with you forthwith.
Best regards,
Brett @:
char(cumsum([98 17 -11 7 -10 7 7 -4 -47 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))
Antworten (1)
Image Analyst
am 2 Jul. 2021
I imagine the (x,y) coordinates are contained in the BBs variable. What do you see in the command window if you take off the semicolon from this line?
BBs = autoBound(Componente_El, @createMaskBottom_PCB7)
It will report the value of BBs to the command window. What do you see immediately after executing that line?
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!