Mean Patch Perimeter

Conducts a Connected Component labeling and returns the mean perimeter of the patches multiplied with the given cellsize.