Compute the filled convex hull.
function call:
[out_img1]=vsg('FilledConvex',in_img1);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale
or binary image, or DICOM image.
Description:
Consider a single blob in a binary image. The convex hull is that area
enclosed within the smallest convex polygon which encloses the shape.
out_img1 – an image of the same dimensions as the input image. The
output has the smallest possible enclosing polygon drawn around the
objects in the input image. The polygon is filled with white pixels.
Examples:
Img1 = openimage('A8.bmp');
h=figure;image(img1);set(h,'Name','Input Image');
[out_img1]=vsg('Threshold',img1,100);
[out_img1]=vsg('ConvexHull',out_img1);
Notes:
For DICOM images, each slice is considered separately. RGB images are worked on as a single plane after edge extraction.