Compute the Euler number from a binary image.
function call:
[num1]=vsg('EulerNum',in_img1);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale or binary image.
Return values:
The num1 – the Euler number of the input image.
The number of objects in the image minus the number of holes in those
objects.
Example:
img = openimage('blobs.jpg');
[out_img1]=vsg('Threshold',img,100);