Before switching ndimage functions to opencv
Changed binary closing to use opencv2
Open cv for labeling connected components
Open cv for labeling connected components