implement adaptive threshold function
Merge branch 'Charlie-Branch'
stable adaptive threshold function
Merge branch 'Charlie-Branch'
Merge branch 'master' of https://github.com/Charlie-Github/TestGray