fork from google code(https://code.google.com/p/mmseg4j/)