matlab - Coordinates of figure on array -
what shortest way find coordinates of figure left/right/top/bottom edges? 4 coordinates (2 horizontal, 2 vertical lines) enough.
tried flip, transpose, etc. mind gonna blow :/.
[edit]: image binary. figure represented 1's.
you can seek bounding box regionprops() function.
regionprops(img,'boundingbox') the result (x,y) upper left coordinates x_width, y_width, size of box.
i [45.5000000000000 45.5000000000000 174 107] in image.
arrays matlab coordinates
No comments:
Post a Comment