IsolateBays

Isolate bays in a binary image.

 

function call:

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

 

Arguments:

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

 

Description:

The bays are the sections inside the convex hull and outside any enclosed region within the convex hull. The out_img1 – returns an image of the same dimensions as the input with the bays of the input image returned. The bays are marked as white in the output image.

 

Example:

img = openimage('A.jpg');

figure;image(img);

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

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

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

Notes:

Ensure that binary images have a range {0,255}. For DICOM images, the hole in each white blob on each slice is filled displayed, not the hole in the 3D blob.
Home       Functions       Back