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
Description:
The function shows
the application of Medial Axis Transform (
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