Fix segment num & center list size calucation

But, Iteration has bugs. so can iterate only 1 time.
Remove WriteMask2File()
Remove Useless variables