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.
File list:
__MACOSX
.......\._averagefilter.m
.......\._bradley.m
.......\._bradley.png
.......\._readme.txt
averagefilter.m
bradley.m
bradley.png

license.txt
readme.txt