Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Calculate the bounding rectangles of elements in a binary image
ResourceFunction["FindImageBoundingBoxes"][img] returns a list containing the bounding rectangles of the elements of the binary image img. |
Find all of the bounding boxes of all the elements of an image:
| In[1]:= | ![]() |
| Out[1]= | ![]() |
Find all of the bounding boxes:
| In[2]:= | ![]() |
| Out[2]= | ![]() |
Highlight them with a RandomColor:
| In[3]:= | ![]() |
| Out[3]= | ![]() |
FindBoundingBoxes does not work with matrices or lists:
| In[4]:= | ![]() |
| Out[4]= |
FindBoundingBoxes only works for grayscale images:
| In[5]:= | ![]() |
| Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License