I started to read your code 1 week ago. Performance is good. And I have a question about general procedure of your codes. Is it run in the way like
Enhance gray image,
Binarize gray image,
I found a PDF in you .zip file. So, is it everything implemented based on that paper?