docstr: The "scale" for the threshold = minor parameterizations
docstr_tok: ["The","``","scale","''","for","the","threshold","=","minor","parameterizations"]
code: def threshold_scale(self):
      """The "scale" for the threshold = minor parameterizations"""
      #
      # Distinguish Otsu choices from each other
      #
      threshold_algorithm = self.threshold_algorithm
      if threshold_algorithm == centrosome.threshold.TM_OTSU:
          if self.two_class_otsu == O_TWO_CLASS:
              scale = "2"
          else:
              scale = "3"
              if self.assign_middle_to_foreground == O_FOREGROUND:
                  scale += "F"
              else:
                  scale += "B"
          if self.use_weighted_variance == O_WEIGHTED_VARIANCE:
              scale += "W"
          else:
              scale += "S"
          return scale
      elif threshold_algorithm == centrosome.threshold.TM_MOG:
          return str(int(self.object_fraction.value * 100))
  
imports: import itertools
  import logging
  import cellprofiler_core.utilities.image
  import centrosome.cpmorphology
  import centrosome.haralick
  import centrosome.radial_power_spectrum
  import centrosome.threshold
  import centrosome.threshold
  import numpy
  import scipy.linalg.basic
  import scipy.ndimage
  from cellprofiler_core.constants.image import C_SCALING
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT, EXPERIMENT, MCA_AVAILABLE_POST_RUN
  from cellprofiler_core.constants.module._identify import O_WEIGHTED_VARIANCE, O_ENTROPY, O_FOREGROUND, O_BACKGROUND
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import get_headless
  from cellprofiler_core.setting import Divider, HiddenCount, SettingsGroup, Binary, ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.do_something import DoSomething, RemoveSettingButton
  from cellprofiler_core.setting.subscriber import ImageListSubscriber
  from cellprofiler_core.setting.text import ImageName, Integer, Float
  from cellprofiler.modules.threshold import O_THREE_CLASS, O_TWO_CLASS
label_desc: Use image node_id 3 for calling the ImageQualitySettingsGroup obj's underlying member method code with example usage: obj.threshold_scale() and returns: scale, str