updateThreshold function

Review and update the chosen threshold for image segmentation in Step 1 of SCALPEL.