docstr: Calculate statistics for a particular image
docstr_tok: ["Calculate","statistics","for","a","particular","image"]
code: def run_on_image_group(self, image_group, workspace):
      """Calculate statistics for a particular image"""
      statistics = []
      if image_group.include_image_scalings.value:
          statistics += self.retrieve_image_scalings(
              image_group, workspace
          )
      if image_group.check_blur.value:
          statistics += self.calculate_focus_scores(
              image_group, workspace
          )
          statistics += self.calculate_correlation(
              image_group, workspace
          )
          statistics += self.calculate_power_spectrum(
              image_group, workspace
          )
      if image_group.check_saturation.value:
          statistics += self.calculate_saturation(
              image_group, workspace
          )
      if image_group.check_intensity.value:
          statistics += self.calculate_image_intensity(
              image_group, workspace
          )
      if image_group.calculate_threshold.value:
          statistics += self.calculate_thresholds(
              image_group, workspace
          )
  
      return statistics
  
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 26 for calling the MeasureImageQuality obj's underlying member method code with example usage: obj.run_on_image_group(image_group, workspace) and returns: statistics