Introduction - If you have any usage issues, please Google them yourself
The brief idea of the algorithm is that every image s pixel is set to black if its brightness is T percent lower than the average brightness of the surrounding pixels in the window of the specified size, otherwise it is set to white.