FindImageShapes
Updatedshow changes[Experimental]
Details

- FindImageShapes attempts to find shapes such as lines, circles and ellipses in an image.
- Possible "model" specifications include:
-
"Line" a list of InfiniteLine objects "LineSegment" a list of Line objects "Circle" a list of Circle objects "Ellipse" a list of transformed Circle objects {model1,model2,…} an association of shapes grouped by each modeli - FindImageShapes expects an image in which the shapes are highlighted as bright pixels over dark backgrounds.
- Highlight contours such as lines and circles using EdgeDetect, RidgeFilter, GradientFilter and more.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (2)Survey of the scope of standard use cases
Detect and visualize straight lines in an image:
In[1]:=1

✖
https://wolfram.com/xid/0c0pqfdplbuz4-3ifp1j
In[6]:=6

✖
https://wolfram.com/xid/0c0pqfdplbuz4-4af1vy
Out[6]=6

In[9]:=9

✖
https://wolfram.com/xid/0c0pqfdplbuz4-lzd31o
In[10]:=10

✖
https://wolfram.com/xid/0c0pqfdplbuz4-msstk8
Out[10]=10

Find and highlight line segments:
In[11]:=11

✖
https://wolfram.com/xid/0c0pqfdplbuz4-hflgwh
In[12]:=12

✖
https://wolfram.com/xid/0c0pqfdplbuz4-pyqac6
Out[12]=12

Detect and visualize ellipses:
In[1]:=1

✖
https://wolfram.com/xid/0c0pqfdplbuz4-u91b5h
In[2]:=2

✖
https://wolfram.com/xid/0c0pqfdplbuz4-vh74ro
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0c0pqfdplbuz4-4xgfmo
In[4]:=4

✖
https://wolfram.com/xid/0c0pqfdplbuz4-7qs426
Out[4]=4

Applications (1)Sample problems that can be solved with this function
Detect and visualize the iris:
In[1]:=1

✖
https://wolfram.com/xid/0c0pqfdplbuz4-iqlm3u
In[2]:=2

✖
https://wolfram.com/xid/0c0pqfdplbuz4-513cu2
Out[2]=2

Find and highlight the largest detected circle:
In[3]:=3

✖
https://wolfram.com/xid/0c0pqfdplbuz4-6muh4f
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0c0pqfdplbuz4-2v6ob8
Out[4]=4

Wolfram Research (2023), FindImageShapes, Wolfram Language function, https://reference.wolfram.com/language/ref/FindImageShapes.html (updated 2025).
✖
Wolfram Research (2023), FindImageShapes, Wolfram Language function, https://reference.wolfram.com/language/ref/FindImageShapes.html (updated 2025).
Text
Wolfram Research (2023), FindImageShapes, Wolfram Language function, https://reference.wolfram.com/language/ref/FindImageShapes.html (updated 2025).
✖
Wolfram Research (2023), FindImageShapes, Wolfram Language function, https://reference.wolfram.com/language/ref/FindImageShapes.html (updated 2025).
CMS
Wolfram Language. 2023. "FindImageShapes." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/FindImageShapes.html.
✖
Wolfram Language. 2023. "FindImageShapes." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/FindImageShapes.html.
APA
Wolfram Language. (2023). FindImageShapes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindImageShapes.html
✖
Wolfram Language. (2023). FindImageShapes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindImageShapes.html
BibTeX
✖
@misc{reference.wolfram_2025_findimageshapes, author="Wolfram Research", title="{FindImageShapes}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/FindImageShapes.html}", note=[Accessed: 30-May-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_findimageshapes, organization={Wolfram Research}, title={FindImageShapes}, year={2025}, url={https://reference.wolfram.com/language/ref/FindImageShapes.html}, note=[Accessed: 30-May-2025
]}