code: def create_settings(self):
      super(FindMaxima, self).create_settings()
  
      self.min_distance = Integer(
          text="Minimum distance between maxima",
          value=5,
          minval=0,
          doc="Choose the minimum distance between accepted local maxima",
      )
  
      self.exclude_mode = Choice(
          "Method for excluding background",
          [MODE_THRESHOLD, MODE_MASK, MODE_OBJECTS],
          value="Threshold",
          doc=f"""\
  By default, local maxima will be searched for across the whole image. This means
  that maxima will be found in areas that consist entirely of background. To
  resolve this we have several methods to exclude background.
  
  **{MODE_THRESHOLD}** allows you to specify a minimum pixel intensity to be
  considered as a peak. Setting this to 0 effectively uses no threshold.
  
  **{MODE_MASK}** will restrict peaks to areas which are within a provided mask
  image. This mask will typically come from the threshold module or another means
  of finding background.
  
  **{MODE_OBJECTS}** will restrict peaks to areas within an existing set of
  objects.
  """,
      )
  
      self.min_intensity = Float(
          "Specify the minimum intensity of a peak",
          0,
          minval=0,
          doc="""\
  Intensity peaks below this threshold value will be excluded. Use this to ensure
  that your local maxima are within objects of interest.
  """,
      )
  
      self.mask_image = ImageSubscriber(
          "Select the image to use as a mask",
          doc="Select the image you want to use. This should be a binary image.",
      )
  
      self.mask_objects = LabelSubscriber(
          "Select the objects to search within",
          doc="Select the objects within which to search for peaks.",
      )
  
      self.label_maxima = Binary(
          "Individually label maxima?",
          value=True,
          doc="""\
  Assign unique labels to each identified maxima. This is requried if you intend
  to use the labelled maxima as markers in the *Watershed* module.
              """,
      )
  
      self.maxima_color = Color(
          "Select maxima preview color",
          "Red",
          doc="Maxima will be displayed in this color.",
      )
  
      self.maxima_size = Integer(
          "Select maxima preview size",
          value=1,
          minval=1,
          doc="""\
  Size of the markers for each maxima in the preview. Positive pixels will be
  expanded by this radius. You may want to increase this when working with large
  images.
  """,
      )
  
file_path: CellProfiler/src/frontend/cellprofiler/modules/findmaxima.py
imports: import numpy
  from skimage.feature import peak_local_max
  from skimage.morphology import disk, ball, dilation
  import scipy.ndimage
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import ImageProcessing
  from cellprofiler_core.setting import Color, Binary
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import ImageSubscriber, LabelSubscriber
  from cellprofiler_core.setting.text import Integer, Float
  from cellprofiler_core.utilities.core.object import overlay_labels
label_desc: Use image node_id 1 for calling the FindMaxima obj's underlying member method code with example usage: obj.create_settings() without return types