BlobFill

Fill the holes in a binary image.

 

function call:

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

 

Arguments:

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

 

Description:

Fills the hole in a binary image. out_img1 – returns an image of the same dimensions as the input with each white blob filled so that there are no black spots in any of the white blobs.

 

Example:

img = openimage('A.bmp');

figure;image(img);

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

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

figure;image(uint8(out_img1));

Notes:

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