File Exchange

image thumbnail

Circle Hough Transform

version (91.4 KB) by Quan Wang
Hough transform for circles in binary images


Updated 07 May 2014

View Version History

View License

This package performs Hough transform on binary images. The transform is from the x-y image space to the xc-yc-r parameter space, where (xc,yc) is the center of the circle, and r is the radius.
The package can also find the best fit of a circle in the binary image. This is done by performing 3D Gaussian filtering in the xc-yc-r 3D parameter space.
The core algorithm is written in C++, thus is very fast. You need Matlab compiler to compile it.

Cite As

Quan Wang (2021). Circle Hough Transform (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Vaddeti Nikitha

Vaddeti Nikitha

I am using this code by there is a error stating
Building with 'MinGW64 Compiler (C++)'.
Error using mex
C:\Users\Rahul\Desktop\CircleHoughTransform_v1.1\CircleHoughTransform.cpp: In function 'void
mexFunction(int, mxArray*, int, const mxArray*)':
C:\Users\Rahul\Desktop\CircleHoughTransform_v1.1\CircleHoughTransform.cpp:132:66: error: cannot convert
'int*' to 'const size_t* {aka const long long unsigned int*}' for argument '2' to 'mxArray*
mxCreateNumericArray_730(size_t, const size_t*, mxClassID, mxComplexity)'
plhs[0] = mxCreateNumericArray(3, dim, mxDOUBLE_CLASS, mxREAL);
Error in demo2 (line 16)
mex CircleHoughTransform.cpp;

CAN YOU HELP ME OUT ?? I have installed mingw 64 also but still this code dosnt work in any Matlab version from 2017b to 2019a

Yan Ou

MATLAB Release Compatibility
Created with R2013b
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!