Minimum area bounding rectangle.
function call:
[out_img1]=vsg('BoundingBox',in_img1);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale or binary image, or
DICOM image.
Description:
out_img1 – returns an image
of the same dimensions as the input with the smallest possible rectangle
that encloses all image objects drawn around the image objects.
Example:
img = imread('A.jpg');
[out_img1]=vsg('Threshold',img,100);
[out_img1]=vsg('BoundingBox',out_img1);
Notes:
For colour images, the bounding box surrounding all coloured objects is
drawn. For DICOM images, the bounding box for each slice is calculated
and displayed.