FullThin

Full application of the thinning algorithm. Thin till completion resulting in a skeleton image.

 

function call:

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

 

 

Arguments:

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

 

Description:

Thinning allows the generation of match-stick like figures while keeping critically connected component.

out_img1 - An image which has dimensions the same as the input image. The output image displays a fully thinned version of the input white objects.

 

Examples:

img = openimage('A.jpg');

figure;image(img);

[out_img1]=vsg('Threshold',img,100);

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

h=figure;image(uint8(out_img1));set(h,'Name','Full Thin');

Notes:

1. For DICOM images, the function operates on each slice separately.

2. For RGB images, the function operates on each channel separately.

Home       Functions       Back