How identify coordinates of more bounding boxes

2 Ansichten (letzte 30 Tage)
ROTARIU PAUL
ROTARIU PAUL am 1 Jul. 2021
Bearbeitet: Brett Shoelson am 3 Okt. 2023
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
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
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]))

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
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?

Kategorien

Mehr zu Just for fun 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!

Translated by