It finds the contour of contours of coneected pixels in a binary image.
C = findContour(I)
C = findContour(I,k)
A binary matrix in 0 and 1 representing a binary image.
A binary digit 0 or 1. By default its value is 1.
A binary matrix representing the countour of the input binary image.
It computes the contour of the connected pixels in a given binary image. It can take one or two parameters as input. If only the first parameter is taken as input, the second parameter is taken as 1, which corresponds to the contour with black background. If the value of second parameter is 0, the computed contour has white background.