Extract the biggest white blob from a binary image.
function call:
[out_img1]=vsg('BiggestBlob',in_img1);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale
or
binary image, or DICOM image.
Description:
Find the largest, non-connecting, white blob in a binary image.
out_img1 - an image which has dimensions the same as the input
image. The output image displays the largest of the input white blobs.
Example:
img1 = openimage('blobs.bmp');
h=figure;image(img1);set(h,'Name','Input Image');
[out_img1]=vsg('Threshold',img1,100);
[out_img1]=vsg('BiggestBlob',out_img1);
Notes:
1. For DICOM images, the function operates on each slice separately.
2. For RGB images, the input on all 3 channels must be white for the
area to be considered white.