Adaptive Thresholding

adapt_cclabel.py is the new main function, with cclabel.py still using
the old global thresholding.