MedialAxis

Medial axis transform operation. Binary image showing the simple skeleton.

 

function call:

[out_img1]=vsg('MedialAxis',in_img1);

 

Arguments:

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

 

Description:

The function shows the application of Medial Axis Transform (MAT) on binary image.

out_img1 – An image which has dimensions the same as the input image. The centre axis of any white objects in the input image.

 

Example:

img = openimage('crown.jpg');

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

h=figure;image(uint8(out_img1));set(h,'Name','Binary Image');

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

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

 

Notes:

1. For DICOM images, the function operates on all slices separately.

2. For RGB images, the function operates on all colour planes separately.

Home       Functions    Back