Package omero :: Package gateway :: Class _ImageWrapper
[hide private]
[frames] | no frames]

Class _ImageWrapper

source code


omero_model_ImageI class wrapper extends BlitzObjectWrapper.

Instance Methods [hide private]
 
__bstrap__(self)
Initialisation method which is implemented by subclasses to set their class variables etc.
source code
 
__del__(self) source code
 
__loadedHotSwap__(self)
Loads the object that is wrapped by this class.
source code
InstrumentWrapper
getInstrument(self)
Returns the Instrument for this image (or None) making sure the instrument is loaded.
source code
Boolean
_loadPixels(self)
Checks that pixels are loaded
source code
 
_getRDef(self, pid)
Return a rendering def ID based on custom logic.
source code
 
_onResetDefaults(self, pid, rdid)
Called whenever a reset defaults is called by the preparation of the rendering engine or the thumbnail bean.
source code
ProxyObjectWrapper
_prepareRE(self)
Prepare the rendering engine with pixels ID and existing or new rendering def.
source code
Boolean
_prepareRenderingEngine(self)
Checks that the rendering engine is prepared, calling _prepareRE if needed.
source code
 
resetRDefs(self) source code
Dict
simpleMarshal(self, xtra=None, parents=False)
Creates a dict representation of the Image, including author and date info.
source code
ImageStageLabelWrapper
getStageLabel(self)
Returns the stage label or None
source code
 
shortname(self, length=20, hist=5)
Provides a truncated name of the image.
source code
String
getAuthor(self)
Returns 'Firstname Lastname' of image owner
source code
DatasetWrapper
getDataset(self)
XXX: Deprecated since 4.3.2, use listParents().
source code
ProjectWrapper
getProject(self)
Gets the Project that image is in, or None.
source code
ObjectiveSettingsWrapper
getObjectiveSettings(self)
Gets the Ojbective Settings of the Image, or None
source code
ImagingEnvironmentWrapper
getImagingEnvironment(self)
Gets the Imaging Environment of the Image, or None
source code
Long
getPixelsId(self)
Returns the Primary Pixels ID for the image.
source code
ProxyObjectWrapper
_prepareTB(self, _r=False)
Prepares Thumbnail Store for the image.
source code
Tuple (FileAnnotationWrapper, [], [])
loadOriginalMetadata(self)
Gets original metadata from the file annotation.
source code
 
_getProjectedThumbnail(self, size, pos)
Returns a string holding a rendered JPEG of the projected image, sized to mimic a thumbnail.
source code
string or None
getThumbnail(self, size=(64,64), z=None, t=None)
Returns a string holding a rendered JPEG of the thumbnail.
source code
 
getPixelRange(self)
Returns (min, max) values for the pixels type of this image.
source code
 
getPrimaryPixels(self)
Loads pixels and returns object in a PixelsWrapper
source code
List of ChannelWrapper
getChannels(self)
Returns a list of Channels, each initialised with rendering engine
source code
 
setActiveChannels(self, channels, windows=None, colors=None)
Sets the active channels on the rendering engine.
source code
List of strings
getProjections(self)
Returns list of available keys for projection.
source code
String
getProjection(self)
Returns the current projection option (checking it is valid).
source code
 
setProjection(self, proj)
Sets the current projection option.
source code
Boolean
isInvertedAxis(self)
Returns the inverted axis flag
source code
 
setInvertedAxis(self, inverted)
Sets the inverted axis flag
source code
 
getPixelLine(self, z, t, pos, axis, channels=None, range=None)
Grab a horizontal or vertical line from the image pixel data, for the specified channels (or 'active' if not specified) and using the specified range (or 1:1 relative to the image size).
source code
 
getRow(self, z, t, y, channels=None, range=None)
Grab a horizontal line from the image pixel data, for the specified channels (or active ones)
source code
 
getCol(self, z, t, x, channels=None, range=None)
Grab a horizontal line from the image pixel data, for the specified channels (or active ones)
source code
List of BlitzObjectWrapper
getRenderingModels(self)
Gets a list of available rendering models.
source code
BlitzObjectWrapper
getRenderingModel(self)
Get the current rendering model.
source code
 
setGreyscaleRenderingModel(self)
Sets the Greyscale rendering model on this image's current renderer
source code
 
setColorRenderingModel(self)
Sets the HSB rendering model on this image's current renderer
source code
Boolean
isGreyscaleRenderingModel(self)
Returns True if the current rendering model is 'greyscale'
source code
 
renderBirdsEyeView(self, size)
Returns the data from rendering the bird's eye view of the image.
source code
 
renderJpegRegion(self, z, t, x, y, width, height, level=None, compression=0.9)
Return the data from rendering a region of an image plane.
source code
 
renderJpeg(self, z, t, compression=0.9)
Return the data from rendering image, compressed (and projected).
source code
String or (size, data generator)
exportOmeTiff(self, bufsize=0)
Exports the OME-TIFF representation of this image.
source code
List of Strings
_wordwrap(self, width, text, font)
Wraps text into lines that are less than a certain width (when rendered in specified font)
source code
(String, String)
createMovie(self, outpath, zstart, zend, tstart, tend, opts=None)
Creates a movie file from this image.
source code
PIL Image.
renderImage(self, z, t, compression=0.9)
Render the Image, (projected) and compressed.
source code
 
renderSplitChannel(self, z, t, compression=0.9, border=2)
Prepares a jpeg representation of a 2d grid holding a render of each channel, along with one for all channels at the set Z and T points.
source code
Dict
splitChannelDims(self, border=2)
Returns a dict of layout parameters for generating split channel image.
source code
 
_renderSplit_channelLabel(self, channel) source code
PIL Image
renderSplitChannelImage(self, z, t, compression=0.9, border=2)
Prepares a PIL Image with a 2d grid holding a render of each channel, along with one for all channels at the set Z and T points.
source code
 
prepareLinePlotCanvas(self)
Common part of horizontal and vertical line plot rendering.
source code
String
renderRowLinePlotGif(self, z, t, y, linewidth=1)
Draws the Row plot as a gif file.
source code
String
renderColLinePlotGif(self, z, t, x, linewidth=1)
Draws the Column plot as a gif file.
source code
int
getZ(self)
Returns the last used value of Z (E.g.
source code
int
getT(self)
Returns the last used value of T (E.g.
source code
 
getDefaultZ(self)
Gets the default Z index from the rendering engine
source code
 
getDefaultT(self)
Gets the default T index from the rendering engine
source code
float
getPixelsType(self)
Gets the physical size X of pixels in microns
source code
float
getPixelSizeX(self)
Gets the physical size X of pixels in microns
source code
float
getPixelSizeY(self)
Gets the physical size Y of pixels in microns
source code
float
getPixelSizeZ(self)
Gets the physical size Z of pixels in microns
source code
int
getSizeX(self)
Gets width (size X) of the image (in pixels)
source code
int
getSizeY(self)
Gets height (size Y) of the image (in pixels)
source code
int
getSizeZ(self)
Gets Z count of the image
source code
int
getSizeT(self)
Gets T count of the image
source code
int
getSizeC(self)
Gets C count of the image (number of channels)
source code
Boolean
clearDefaults(self)
Removes specific color settings from channels
source code
Dict
_collectRenderOptions(self)
Returns a map of rendering options not stored in rendering settings.
source code
Dict
_loadRenderOptions(self)
Loads rendering options from an Annotation on the Image.
source code
 
loadRenderOptions(self)
Loads rendering options from an Annotation on the Image and applies them to the Image.
source code
 
saveDefaults(self)
Limited support for saving the current prepared image rendering defs.
source code
 
countArchivedFiles(self)
Returns the number of Original 'archived' Files linked to primary pixels.
source code
 
getArchivedFiles(self)
Returns a generator of OriginalFileWrappers corresponding to the archived files linked to primary pixels
source code

Inherited from BlitzObjectWrapper: __eq__, __getattr__, __init__, __prepare__, __repr__, canDelete, canOwnerWrite, canWrite, countChildren, countChildren_cached, creationEventDate, findChildByName, getAncestry, getAnnotation, getChildLinks, getDate, getDescription, getDetails, getId, getName, getOwner, getOwnerFullName, getOwnerOmeName, getParent, getParentLinks, isEditable, isLeaded, isOwned, isPrivate, isPublic, isReadOnly, isShared, linkAnnotation, listAnnotations, listChildren, listOrphanedAnnotations, listParents, removeAnnotations, save, saveAs, setDescription, setName, unlinkAnnotations, updateEventDate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
ImageWrapper
fromPixelsId(self, conn, pid)
Creates a new Image wrapper with the image specified by pixels ID
source code
Static Methods [hide private]

Inherited from BlitzObjectWrapper: LINK_PARENT

Class Variables [hide private]
  _re = None
hash(x)
  _pd = None
hash(x)
  _rm = {}
  _pixels = None
hash(x)
  _archivedFileCount = None
hash(x)
  _pr = None
hash(x)
  _invertedAxis = False
hash(x)
  PROJECTIONS = {'normal':-1, 'intmax': omero.constants.projecti...
  PLANEDEF = omero.romio.XY
  LINE_PLOT_DTYPES = {(4, True, True): 'f', (2, False, False): '...
  LP_PALLETE = [0, 0, 0, 0, 0, 0, 255, 255, 255]
  LP_TRANSPARENT = 0
  LP_BGCOLOR = 1
  LP_FGCOLOR = 2

Inherited from BlitzObjectWrapper: CHILD_WRAPPER_CLASS, LINK_CHILD, LINK_CLASS, OMERO_CLASS, PARENT_WRAPPER_CLASS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

fromPixelsId(self, conn, pid)
Class Method

source code 

Creates a new Image wrapper with the image specified by pixels ID

Parameters:
  • conn (BlitzGateway) - The connection
  • pid (Long) - Pixles ID
Returns: ImageWrapper
New Image wrapper

__bstrap__(self)

source code 

Initialisation method which is implemented by subclasses to set their class variables etc.

Overrides: BlitzObjectWrapper.__bstrap__
(inherited documentation)

__loadedHotSwap__(self)

source code 

Loads the object that is wrapped by this class. This includes linked objects. This method can be overwritten by subclasses that want to specify how/which linked objects are loaded.

Overrides: BlitzObjectWrapper.__loadedHotSwap__
(inherited documentation)

getInstrument(self)

source code 

Returns the Instrument for this image (or None) making sure the instrument is loaded.

Returns: InstrumentWrapper
Instrument (microscope)

_loadPixels(self)

source code 

Checks that pixels are loaded

Returns: Boolean
True if loaded

_getRDef(self, pid)

source code 

Return a rendering def ID based on custom logic.

Parameters:
  • pid (Long) - Pixels ID
Returns:
Rendering definition ID or None if no custom logic has found a rendering definition.

_onResetDefaults(self, pid, rdid)

source code 

Called whenever a reset defaults is called by the preparation of the rendering engine or the thumbnail bean.

Parameters:
  • pid (Long) - Pixels ID
  • pid (Long) - Current Rendering Def ID

_prepareRE(self)

source code 

Prepare the rendering engine with pixels ID and existing or new rendering def.

Returns: ProxyObjectWrapper
The Rendering Engine service

_prepareRenderingEngine(self)

source code 

Checks that the rendering engine is prepared, calling _prepareRE if needed. Used by the assert_re method to wrap calls requiring rendering engine

Returns: Boolean
True if rendering engine is created

simpleMarshal(self, xtra=None, parents=False)

source code 

Creates a dict representation of the Image, including author and date info.

Returns: Dict
Dict
Overrides: BlitzObjectWrapper.simpleMarshal

getStageLabel(self)

source code 

Returns the stage label or None

Returns: ImageStageLabelWrapper
Stage label

shortname(self, length=20, hist=5)

source code 

Provides a truncated name of the image. E.g. ...catedNameOfTheImage.tiff

Parameters:
  • length (Int) - The ideal length to return. If truncated, will be ...length
  • hist (Int) - The amount of leeway allowed before trunction (avoid truncating 1 or 2 letters)
Returns:
Truncated ...name

getAuthor(self)

source code 

Returns 'Firstname Lastname' of image owner

Returns: String
Image owner

getDataset(self)

source code 

XXX: Deprecated since 4.3.2, use listParents(). (See #6660) Gets the Dataset that image is in, or None. Returns None if Image is in more than one Dataset.

Returns: DatasetWrapper
Dataset

getProject(self)

source code 

Gets the Project that image is in, or None. TODO: Assumes image is in only 1 Project. Why not use getAncestory()[-1] Returns None if Image is in more than one Dataset & Project.

Returns: ProjectWrapper
Project

getObjectiveSettings(self)

source code 

Gets the Ojbective Settings of the Image, or None

Returns: ObjectiveSettingsWrapper
Objective Settings

getImagingEnvironment(self)

source code 

Gets the Imaging Environment of the Image, or None

Returns: ImagingEnvironmentWrapper
Imaging Environment

getPixelsId(self)

source code 

Returns the Primary Pixels ID for the image.

Returns: Long
Pixels ID
Decorators:
  • @assert_pixels

_prepareTB(self, _r=False)

source code 

Prepares Thumbnail Store for the image.

Parameters:
  • _r (Boolean) - If True, don't reset default rendering (return None if no rDef exists)
Returns: ProxyObjectWrapper
Thumbnail Store or None

loadOriginalMetadata(self)

source code 

Gets original metadata from the file annotation. Returns the File Annotation, list of Global Metadata, list of Series Metadata in a tuple. Metadata lists are lists of (key, value) tuples.

Returns: Tuple (FileAnnotationWrapper, [], [])
Tuple of (file-annotation, global-metadata, series-metadata)

_getProjectedThumbnail(self, size, pos)

source code 

Returns a string holding a rendered JPEG of the projected image, sized to mimic a thumbnail. This is an 'internal' method of this class, used to generate a thumbnail from a full-sized projected image (since thumbnails don't support projection). SetProjection should be called before this method is called, so that this returns a projected, scaled image.

Parameters:
  • size (list or tuple) - The length of the longest size, in a list or tuple. E.g. (100,)
  • pos (Tuple (z,t)) - The (z, t) position
Decorators:
  • @assert_re()

getThumbnail(self, size=(64,64), z=None, t=None)

source code 

Returns a string holding a rendered JPEG of the thumbnail.

Parameters:
  • size (tuple or number) - A tuple with one or two ints, or an integer. If a tuple holding a single int, or a single int is passed as param, then that will be used as the longest size on the rendered thumb, and image aspect ratio is kept. If two ints are passed in a tuple, they set the width and height of the rendered thumb.
  • z (number) - the Z position to use for rendering the thumbnail. If not provided default is used.
  • t (number) - the T position to use for rendering the thumbnail. If not provided default is used.
Returns: string or None
the rendered JPEG, or None if there was an error.

getPixelRange(self)

source code 

Returns (min, max) values for the pixels type of this image. TODO: Does not handle floats correctly, though.

Returns:
Tuple (min, max)
Decorators:
  • @assert_pixels

getPrimaryPixels(self)

source code 

Loads pixels and returns object in a PixelsWrapper

Decorators:
  • @assert_pixels

getChannels(self)

source code 

Returns a list of Channels, each initialised with rendering engine

Returns: List of ChannelWrapper
Channels
Decorators:
  • @assert_re(ignoreExceptions= (omero.ConcurrencyException))

setActiveChannels(self, channels, windows=None, colors=None)

source code 

Sets the active channels on the rendering engine. Also sets rendering windows and channel colors (for channels that are active)

Parameters:
  • channels (List of int) - List of active channel indexes ** 1-based index **
  • windows (List of tuples. [(20, 300), (None, None), (50, 500)]. Must be tuples for all channels) - Start and stop values for active channel rendering settings
  • colors - List of colors. ['F00', None, '00FF00']. Must be item for each channel

getProjections(self)

source code 

Returns list of available keys for projection. E.g. ['intmax', 'intmean']

Returns: List of strings
Projection options

getProjection(self)

source code 

Returns the current projection option (checking it is valid).

Returns: String
Projection key. E.g. 'intmax'

setProjection(self, proj)

source code 

Sets the current projection option.

Parameters:
  • proj (String) - Projection Option. E.g. 'intmax' or 'normal'

isInvertedAxis(self)

source code 

Returns the inverted axis flag

Returns: Boolean
Inverted Axis

setInvertedAxis(self, inverted)

source code 

Sets the inverted axis flag

Parameters:
  • inverted (Boolean) - Inverted Axis

getPixelLine(self, z, t, pos, axis, channels=None, range=None)

source code 

Grab a horizontal or vertical line from the image pixel data, for the specified channels (or 'active' if not specified) and using the specified range (or 1:1 relative to the image size). Axis may be 'h' or 'v', for horizontal or vertical respectively.

Parameters:
  • z - Z index
  • t - T index
  • pos - X or Y position
  • axis - Axis 'h' or 'v'
  • channels - map of {index: ChannelWrapper }
  • range - height of scale (use image height (or width) by default)
Returns:
rv List of lists (one per channel)

getRow(self, z, t, y, channels=None, range=None)

source code 

Grab a horizontal line from the image pixel data, for the specified channels (or active ones)

Parameters:
  • z - Z index
  • t - T index
  • y - Y position of row
  • channels - map of {index: ChannelWrapper }
  • range - height of scale (use image height by default)
Returns:
rv List of lists (one per channel)

getCol(self, z, t, x, channels=None, range=None)

source code 

Grab a horizontal line from the image pixel data, for the specified channels (or active ones)

Parameters:
  • z - Z index
  • t - T index
  • x - X position of column
  • channels - map of {index: ChannelWrapper }
  • range - height of scale (use image width by default)
Returns:
rv List of lists (one per channel)

getRenderingModels(self)

source code 

Gets a list of available rendering models.

Returns: List of BlitzObjectWrapper
Rendering models
Decorators:
  • @assert_re()

getRenderingModel(self)

source code 

Get the current rendering model.

Returns: BlitzObjectWrapper
Rendering model
Decorators:
  • @assert_re()

isGreyscaleRenderingModel(self)

source code 

Returns True if the current rendering model is 'greyscale'

Returns: Boolean
isGreyscale

renderBirdsEyeView(self, size)

source code 

Returns the data from rendering the bird's eye view of the image.

Parameters:
  • size - Maximum size of the longest side of the resulting bird's eye view.
Returns:
Data containing a bird's eye view jpeg
Decorators:
  • @assert_re()

renderJpegRegion(self, z, t, x, y, width, height, level=None, compression=0.9)

source code 

Return the data from rendering a region of an image plane. NB. Projection not supported by the API currently.

Parameters:
  • z - The Z index. Ignored if projecting image.
  • t - The T index.
  • x - The x coordinate of region (int)
  • y - The y coordinate of region (int)
  • width - The width of region (int)
  • height - The height of region (int)
  • compression (Float) - Compression level for jpeg
Decorators:
  • @assert_re()

renderJpeg(self, z, t, compression=0.9)

source code 

Return the data from rendering image, compressed (and projected). Projection (or not) is specified by calling setProjection before renderJpeg.

Parameters:
  • z - The Z index. Ignored if projecting image.
  • t - The T index.
  • compression (Float) - Compression level for jpeg
Decorators:
  • @assert_re()

exportOmeTiff(self, bufsize=0)

source code 

Exports the OME-TIFF representation of this image.

Parameters:
  • bufsize (int or tuple) - if 0 return a single string buffer with the whole OME-TIFF if >0 return a tuple holding total size and generator of chunks (string buffers) of bufsize bytes each
Returns: String or (size, data generator)
OME-TIFF file data

_wordwrap(self, width, text, font)

source code 

Wraps text into lines that are less than a certain width (when rendered in specified font)

Parameters:
  • width (Int) - The max width to wrap text (pixels)
  • text (String) - The text to wrap
  • font (E.g. PIL ImageFont) - Font to use.
Returns: List of Strings
List of text lines

createMovie(self, outpath, zstart, zend, tstart, tend, opts=None)

source code 

Creates a movie file from this image. TODO: makemovie import is commented out in 4.2+

Parameters:
  • opts (dict) - dictionary of extra options. Currently processed options are:
    • watermark:string: path to image to use as watermark
    • slides:tuple: tuple of tuples with slides to prefix video with in format (secs:int, topline:text[, middleline:text[, bottomline:text]])
    • fps:int: frames per second
    • minsize: tuple of (minwidth, minheight, bgcolor)
    • format:string: one of video/mpeg or video/quicktime
  • outpath (string)
  • zstart (int)
  • zend (int)
  • tend (int)
  • tstart (int)
Returns: (String, String)
Tuple of (file-ext, format)
Decorators:
  • @assert_re()

renderImage(self, z, t, compression=0.9)

source code 

Render the Image, (projected) and compressed. For projection, call setProjection before renderImage.

Parameters:
  • z - Z index
  • t - T index
Returns: PIL Image.
A PIL Image or None

renderSplitChannel(self, z, t, compression=0.9, border=2)

source code 

Prepares a jpeg representation of a 2d grid holding a render of each channel, along with one for all channels at the set Z and T points.

Parameters:
  • z - Z index
  • t - T index
  • compression - Image compression level
  • border
Returns:
value

splitChannelDims(self, border=2)

source code 

Returns a dict of layout parameters for generating split channel image. E.g. row count, column count etc. for greyscale and color layouts.

Parameters:
  • border (int) - spacing between panels
Returns: Dict
Dict of parameters

renderSplitChannelImage(self, z, t, compression=0.9, border=2)

source code 

Prepares a PIL Image with a 2d grid holding a render of each channel, along with one for all channels at the set Z and T points.

Parameters:
  • z - Z index
  • t - T index
  • compression - Compression level
  • border - space around each panel (int)
Returns: PIL Image
canvas

prepareLinePlotCanvas(self)

source code 

Common part of horizontal and vertical line plot rendering.

Returns:
(Image, width, height).

renderRowLinePlotGif(self, z, t, y, linewidth=1)

source code 

Draws the Row plot as a gif file. Returns gif data.

Parameters:
  • z - Z index
  • t - T index
  • y - Y position
  • linewidth - Width of plot line
Returns: String
gif data as String
Decorators:
  • @assert_re()

renderColLinePlotGif(self, z, t, x, linewidth=1)

source code 

Draws the Column plot as a gif file. Returns gif data.

Parameters:
  • z - Z index
  • t - T index
  • x - X position
  • linewidth - Width of plot line
Returns: String
gif data as String
Decorators:
  • @assert_re()

getZ(self)

source code 

Returns the last used value of Z (E.g. for renderingJpeg or line plot) Returns 0 if these methods not been used yet. TODO: How to get default-Z?

Returns: int
current Z index
Decorators:
  • @assert_re()

getT(self)

source code 

Returns the last used value of T (E.g. for renderingJpeg or line plot) Returns 0 if these methods not been used yet. TODO: How to get default-T?

Returns: int
current T index
Decorators:
  • @assert_re()

getDefaultZ(self)

source code 

Gets the default Z index from the rendering engine

Decorators:
  • @assert_re()

getDefaultT(self)

source code 

Gets the default T index from the rendering engine

Decorators:
  • @assert_re()

getPixelsType(self)

source code 

Gets the physical size X of pixels in microns

Returns: float
Size of pixel in x or O
Decorators:
  • @assert_pixels

getPixelSizeX(self)

source code 

Gets the physical size X of pixels in microns

Returns: float
Size of pixel in x or O
Decorators:
  • @assert_pixels

getPixelSizeY(self)

source code 

Gets the physical size Y of pixels in microns

Returns: float
Size of pixel in y or O
Decorators:
  • @assert_pixels

getPixelSizeZ(self)

source code 

Gets the physical size Z of pixels in microns

Returns: float
Size of pixel in z or O
Decorators:
  • @assert_pixels

getSizeX(self)

source code 

Gets width (size X) of the image (in pixels)

Returns: int
width
Decorators:
  • @assert_pixels

getSizeY(self)

source code 

Gets height (size Y) of the image (in pixels)

Returns: int
height
Decorators:
  • @assert_pixels

getSizeZ(self)

source code 

Gets Z count of the image

Returns: int
size Z
Decorators:
  • @assert_pixels

getSizeT(self)

source code 

Gets T count of the image

Returns: int
size T
Decorators:
  • @assert_pixels

getSizeC(self)

source code 

Gets C count of the image (number of channels)

Returns: int
size C
Decorators:
  • @assert_pixels

clearDefaults(self)

source code 

Removes specific color settings from channels

Returns: Boolean
True if allowed to do this

_collectRenderOptions(self)

source code 

Returns a map of rendering options not stored in rendering settings.

  • 'p' : projection
  • 'ia' : inverted axis (swap Z and T)
Returns: Dict
Dict of render options

_loadRenderOptions(self)

source code 

Loads rendering options from an Annotation on the Image.

Returns: Dict
Dict of rendering options

loadRenderOptions(self)

source code 

Loads rendering options from an Annotation on the Image and applies them to the Image.

Returns:
True! TODO: Always True??

saveDefaults(self)

source code 

Limited support for saving the current prepared image rendering defs. Right now only channel colors are saved back.

Returns:
Boolean
Decorators:
  • @assert_re()

countArchivedFiles(self)

source code 

Returns the number of Original 'archived' Files linked to primary pixels. Value is cached


Class Variable Details [hide private]

PROJECTIONS

Value:
{'normal':-1, 'intmax': omero.constants.projection.ProjectionType.MAXI\
MUMINTENSITY, 'intmean': omero.constants.projection.ProjectionType.MEA\
NINTENSITY, 'intsum': omero.constants.projection.ProjectionType.SUMINT\
ENSITY,}

LINE_PLOT_DTYPES

Value:
{(4, True, True): 'f', (2, False, False): 'H', (2, False, True): 'h', \
(1, False, False): 'B', (1, False, True): 'b',}