modify roi2gwmi alogrithm
Merge pull request #30 from BloodNg/master

modify roi2gwmi alogrithm