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) source code
 
__del__(self) source code
 
__loadedHotSwap__(self) source code
 
_loadPixels(self) source code
 
_prepareRE(self) source code
 
_prepareRenderingEngine(self) source code
 
simpleMarshal(self, xtra=None, parents=False) source code
 
shortname(self, length=20, hist=5) source code
 
getAuthor(self) source code
 
getDataset(self) source code
 
getProject(self) source code
 
getDate(self) source code
 
_prepareTB(self) source code
 
getThumbnail(self, size=(64,64)) source code
 
getChannels(self) source code
 
setActiveChannels(self, channels, windows=None, colors=None) source code
 
getProjections(self) source code
 
setProjection(self, proj) 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 all 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) source code
 
getCol(self, z, t, x, channels=None, range=None) source code
 
getRenderingModels(self) source code
 
getRenderingModel(self) 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
 
isGreyscaleRenderingModel(self) source code
 
renderJpeg(self, z, t, compression=0.9) source code
 
renderImage(self, z, t, compression=0.9) 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
 
splitChannelDims(self, border=2) source code
 
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, z, t)
Common part of horizontal and vertical line plot rendering.
source code
 
renderRowLinePlotGif(self, z, t, y, linewidth=1) source code
 
renderColLinePlotGif(self, z, t, x, linewidth=1) source code
 
getZ(self) source code
 
getT(self) source code
 
getPixelSizeX(self) source code
 
getPixelSizeY(self) source code
 
getPixelSizeZ(self) source code
 
getWidth(self) source code
 
getHeight(self) source code
 
z_count(self) source code
 
t_count(self) source code
 
c_count(self) source code
 
clearDefaults(self)
Removes specific color settings from channels
source code
 
saveDefaults(self)
Limited support for saving the current prepared image rendering defs.
source code

Inherited from BlitzObjectWrapper: __eq__, __getattr__, __init__, __prepare__, __repr__, canOwnerWrite, canWrite, countChildren, countChildren_cached, creationEventDate, getAncestry, getAnnotation, getDescription, getDetails, getId, getName, getOwner, getOwnerFullName, getOwnerOmeName, linkAnnotation, listAnnotations, listChildren, listParents, removeAnnotations, save, saveAs, setName, updateEventDate

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

Class Variables [hide private]
  _re = None
  _pd = None
  _rm = {}
  _pixels = None
  _pr = None
  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_CLASS, OMERO_CLASS, PARENT_WRAPPER_CLASS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__bstrap__(self)

source code 
Overrides: BlitzObjectWrapper.__bstrap__

__loadedHotSwap__(self)

source code 
Overrides: BlitzObjectWrapper.__loadedHotSwap__

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

source code 
Overrides: BlitzObjectWrapper.simpleMarshal

getChannels(self)

source code 
Decorators:
  • @assert_re

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 all 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
  • t
  • pos
  • axis
  • channels
  • range
Returns:
rv

getRenderingModels(self)

source code 
Decorators:
  • @assert_re

getRenderingModel(self)

source code 
Decorators:
  • @assert_re

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

source code 
Decorators:
  • @assert_re

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
  • t
  • compression
  • border
Returns:
value

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
  • t
  • compression
  • border
Returns:
canvas

prepareLinePlotCanvas(self, z, t)

source code 

Common part of horizontal and vertical line plot rendering.

Returns:
(Image, width, height).

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

source code 
Decorators:
  • @assert_re

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

source code 
Decorators:
  • @assert_re

getZ(self)

source code 
Decorators:
  • @assert_re

getT(self)

source code 
Decorators:
  • @assert_re

getPixelSizeX(self)

source code 
Decorators:
  • @assert_pixels

getPixelSizeY(self)

source code 
Decorators:
  • @assert_pixels

getPixelSizeZ(self)

source code 
Decorators:
  • @assert_pixels

getWidth(self)

source code 
Decorators:
  • @assert_pixels

getHeight(self)

source code 
Decorators:
  • @assert_pixels

z_count(self)

source code 
Decorators:
  • @assert_pixels

t_count(self)

source code 
Decorators:
  • @assert_pixels

c_count(self)

source code 
Decorators:
  • @assert_pixels

clearDefaults(self)

source code 

Removes specific color settings from channels

Returns:
Boolean

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

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',}