replaced by thresholdmask.m, a cleaned up version
Added manual correction of lung masks. Fixed some bugs.