Code covered by the BSD License
-
RGBCircle(image, y, x, rad, c...
RGBCircle Draws a circle or ellipse on a RGB image.
-
cfresize(im, longDimSize)
CFRESIZE resize the image if its long dimension is bigger then longDimSize
-
circlefinder(im, radMin, radM...
CIRCLEFINDER finds circles in an RGB or grayscale image.
-
extractcircles(houghTrans, tr...
EXTRACTCIRCLES extract circles from transformed image.
-
houghtransform(im, radVec)
HOUGHTRANSFORM circle hough transform on a binary image im.
-
nonmaxsup1d(x, thresh)
finds the maxima points in x with value > thresh
-
nonmaxsuppts(cim, radius, thr...
NONMAXSUPPTS - Non-maximal suppression for features/corners
-
example.m
-
example2.m
-
View all files
|
|
| example.m |
%circlefinder - useage example
clc
close all
clear all
filename = 'mbike2.jpg';
im = imread(filename);
% finds the circles
[r c rad] = circlefinder(im);
% draws the circles
for n=1:length(rad)
im = RGBCircle(im,r(n),c(n),rad(n), [0 255 0], 2);
end
figure;
imshow(im)
|
|
Contact us