Junctions

Skeleton junction detection from a binary image based on a 3x3 region.

 

function call:

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

 

Arguments:

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

 

Description:

The 3×3 masks are designed to detect 3×3 skeleton junction and replace them by a single white pixel if the masks patterns occurs. Otherwise the output pixel is set to black.

out_img1 - An image which has dimensions the same as the input image. The output image displays the junctions of the white regions of the input image.

 

Example:

img = imread('A.jpg');

h=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);

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

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

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