class_docstr: Provide a single image based on omero pixels id
class_docstr_tok: ["Provide","a","single","image","based","on","omero","pixels","id"]
docstr: Initializer
  
  name            - name of image to be provided
  gateway         - provides connection to an omero server
  pixels_id       - image id relating to the pixels
  z                       - z depth
  c                       - channel
  t                       - time index
docstr_tok: ["Initializer","name","-","name","of","image","to","be","provided","gateway","-","provides","connection","to","an","omero","server","pixels_id","-","image","id","relating","to","the","pixels","z","-","z","depth","c","-","channel","t","-","time","index"]
code: def __init__(self, name, gateway, pixels_id, z=0, c=0, t=0):
      """Initializer
  
      name		- name of image to be provided
      gateway		- provides connection to an omero server
      pixels_id	- image id relating to the pixels
      z			- z depth
      c			- channel
      t			- time index
      """
      self.__name = name
      self.__gateway = gateway
      self.__pixels_id = int(pixels_id)
      self.__z = int(z)
      self.__c = int(c)
      self.__t = int(t)
  
      self.__is_cached = False
      self.__cpimage_data = None
      self.__pixels = gateway.getPixels(pixels_id)
      self.__image_id = self.__pixels.getImage().getId().getValue()
      self.__omero_image_name = (
          self.__gateway.getImage(self.__image_id).getName().getValue()
      )
  
imports: import traceback
  import numpy
  import wx
  import cellprofiler_core.image
  import cellprofiler_core.module
  import cellprofiler_core.measurement
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  from cellprofiler_core.modules import default_cpimage_name
  import omero
  from omero.rtypes import rlong
  from omero.rtypes import rint
  from omero_version import omero_version
label_desc: Use image node_id 1 to create a new OmeroImageProvider object from inherited base classes: cpimage with example: obj = OmeroImageProvider(name, gateway, pixels_id, z, c, t)