class_docstr: A measurement done on a class of objects (or Experiment or Image)
  
  A measurement represents a fully-qualified name of a measurement taken
  on an object. Measurements have categories and feature names and
  may or may not have a secondary image (for instance, the image used
  to measure an intensity), secondary object (for instance, the parent
  object when relating two classes of objects or the object name when
  aggregating object measurements over an image) or scale.
class_docstr_tok: ["A","measurement","done","on","a","class","of","objects","(","or","Experiment","or","Image",")","A","measurement","represents","a","fully-qualified","name","of","a","measurement","taken","on","an","object",".","Measurements","have","categories","and","feature","names","and","may","or","may","not","have","a","secondary","image","(","for","instance",",","the","image","used","to","measure","an","intensity",")",",","secondary","object","(","for","instance",",","the","parent","object","when","relating","two","classes","of","objects","or","the","object","name","when","aggregating","object","measurements","over","an","image",")","or","scale","."]
docstr: Return the currently chosen image name
docstr_tok: ["Return","the","currently","chosen","image","name"]
code: def get_object_name(
      self, pipeline, object_name=None, category=None, feature_name=None
  ):
      """Return the currently chosen image name"""
      if object_name is None:
          object_name = self.__object_fn()
      if category is None:
          category = self.get_category(pipeline, object_name)
      if category is None:
          return None
      if feature_name is None:
          feature_name = self.get_feature_name(
              pipeline, object_name, category
          )
      if feature_name is None:
          return None
      object_names = self.get_object_name_choices(
          pipeline, object_name, category, feature_name
      )
      for object_name in object_names:
          head = "_".join((category, feature_name, object_name))
          if self.value.startswith(head + "_") or self.value == head:
              return object_name
      return None
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/setting/_measurement.py
imports: from ._setting import Setting
  from ._validation_error import ValidationError
label_desc: Use image node_id 13 for calling the Measurement obj's underlying member method code with example usage: obj.get_object_name(pipeline, object_name, category, feature_name) and returns: None, None, None, object_name