WOLFRAM

FindImageShapes[image,"model"]

obtains graphic primitives of shapes in an image.

FindImageShapes[video,]

finds shapes in frames of video.

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 all

Basic Examples  (1)Summary of the most common use cases

Find and highlight largest ellipses in an image:

Highlight two larger ellipses:

Out[3]=3

Scope  (2)Survey of the scope of standard use cases

Detect and visualize straight lines in an image:

Out[6]=6
Out[10]=10

Find and highlight line segments:

Out[12]=12

Detect and visualize ellipses:

Out[2]=2
Out[4]=4

Applications  (1)Sample problems that can be solved with this function

Detect and visualize the iris:

Highlight image edges:

Out[2]=2

Find and highlight the largest detected circle:

Out[3]=3
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 ]}

@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 ]}

@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 ]}