Input

binary: binary image array

row: image high

col: image width

Outout

bwlabel: an array of the connected domain, and a serial number for each connected domain in the image. In particular, bwlabel[0] stores the serial number of the maximum connected area