image thumbnail

Circles Detection using Hough Transform

version 1.0.0 (2.46 KB) by RFM
The code detects the circles in an image using Hough Transform.


Updated 11 Oct 2019

View License

Complete Algorithm Steps
% 1. Reading an Image
% 2. Convert to GrayScale
% 3. Detecting Edges
% 4. Defining an Accumulator Matrix
% 5. Finding the Circles Centers with Equation of Circle Using value of Radius
% 6. Assigning Values in the Accumulator Matrix
% 7. Finding Peak Values (Centre of Circles)
% 8. Plotting Circles on Original Colour Image

Cite As

RFM (2022). Circles Detection using Hough Transform (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!