Bottom to top distance transform (input binary image).
function call:
[out_img1]=vsg('B2TDistance',in_img1);
Arguments:
in_img1
input image, 3 channel
Description:
out_img1
– the output image values are set as, the distance that input white
pixels are from the edge of the white region travelling in a bottom to
top direction.
Example:
img = openimage('crown.jpg');
h=figure;image(img);set(h,'Name','Input
Image');
[out_img1]=vsg('Threshold',img,100);
[out_img1]=vsg('B2TDistance',out_img1);
h=figure;imagesc(out_img1(:,:,1));colormap(gray);set(h,'Name','B2TDistance
Transform');
Notes:
1. For DICOM images,
the function operates on all slices separately.
2. For