ConvexHull

Compute the convex hull boundary.

 

function call:

[out_img1]=vsg('ConvexHull',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.

 

Examples:

img = openimage('A8.bmp');

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

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

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

Notes:

For DICOM images, each slice is considered separately. RGB images are worked on as a single plane after edge extraction. Due to the tight fit of the polygon line, single pixels may end up being bays inside the convex hull.

Home       Functions       Back