CircDetector

 

function call:

[out_img1,out_img2]=vsg('CircDetector',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Description:

out_img1 – An image displaying the detected circles found from the input image, The output image will have the same dimensions as the input image.

out_img2 – An image displaying the detected circles found from the input image superimposed on the radial lines used to find the circles in the first place. The output image will have the same dimensions as the input image.

 

Example:

in_img1=openimage('circle.jpg');

in_img1=255*(in_img1>128);

[in_img1]=vsg('FullThin',in_img1);

h=figure, image(uint8(in_img1)); set(h,'Name','Input image');

[out_img1,out_img2]=vsg('CircDetector',in_img1);

h=figure, image(uint8(out_img1)); set(h,'Name','Detected Circle');

h=figure, imagesc((out_img2(:,:,1)));set(h,'Name','Combined image');

 

Notes:

For RGB images, the function operates on the red colour plane.

Home       Functions    Back