sentences:  If the background variable is omitted, then the two-pass algorithm will treat the background as another region.1.The array from which connected regions are to be extracted is given below (8-connectivity based).