docstr: Return an image that is smoothed according to the settings
  
  image - an instance of cpimage.Image containing the pixels to analyze
  orig_image - the ancestor source image or None if ambiguous
  returns another instance of cpimage.Image
docstr_tok: ["Return","an","image","that","is","smoothed","according","to","the","settings","image","-","an","instance","of","cpimage.Image","containing","the","pixels","to","analyze","orig_image","-","the","ancestor","source","image","or","None","if","ambiguous","returns","another","instance","of","cpimage.Image"]
code: def apply_smoothing(self, image, orig_image=None):
      """Return an image that is smoothed according to the settings
  
      image - an instance of cpimage.Image containing the pixels to analyze
      orig_image - the ancestor source image or None if ambiguous
      returns another instance of cpimage.Image
      """
      if self.smoothing_method == SM_NONE:
          return image
  
      pixel_data = image.pixel_data
      if pixel_data.ndim == 3:
          output_pixels = numpy.zeros(
              pixel_data.shape, pixel_data.dtype
          )
          for i in range(pixel_data.shape[2]):
              output_pixels[:, :, i] = self.smooth_plane(
                  pixel_data[:, :, i], image.mask
              )
      else:
          output_pixels = self.smooth_plane(pixel_data, image.mask)
      output_image = Image(output_pixels, parent_image=orig_image)
      return output_image
  
imports: import centrosome.bg_compensate
  import centrosome.cpmorphology
  import centrosome.cpmorphology
  import centrosome.filter
  import centrosome.smooth
  import numpy
  import scipy.ndimage
  import skimage.filters
  from cellprofiler_core.image import AbstractImage
  from cellprofiler_core.image import Image
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.pipeline import Pipeline
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.text import Float
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
label_desc: Use image node_id 13 for calling the CorrectIlluminationCalculate obj's underlying member method code with example usage: obj.apply_smoothing(image, orig_image) and returns: output_image, image