waitForUser("Select a ROI to sample for normalization."); Stack.getPosition(channel, slice, frame); //mlevel, channel, slice, frame, threshold group to return, string true or falsse //for whether to restrict calculation to the roi selected newmin=call("com.MultiOtsu.Multi_OtsuThreshold.computeMin",2,3,slice,1,1,"true"); print(newmin); Stack.setChannel(3); setMinAndMax(newmin, newmin*2);