Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #5069 (closed)

Opened 13 years ago

Closed 13 years ago

Tile support for RomioPixelBuffer

Reported by: wmoore Owned by: cblackburn
Priority: major Milestone: OMERO-Beta4.3
Component: OmeroFs Version: n.a.
Keywords: n.a. Cc: cxallan
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-05-05 (11)

Description

Tried to render a region:

planeDef = omero.romio.PlaneDef()
region = omero.romio.RegionDef() # etc
planeDef.region = region
img = re.renderCompressed(planeDef)

Not implemented:

  File "/Users/will/Desktop/OMERO/dist/lib/python/omero_api_RenderingEngine_ice.py", line 192, in renderCompressed
    return _M_omero.api.RenderingEngine._op_renderCompressed.invoke(self, ((_def, ), _ctx))
omero.InternalException: exception ::omero::InternalException
{
    serverStackTrace = ome.conditions.InternalException:  Wrapped Exception: (java.lang.UnsupportedOperationException):
Not implemented.
	at ome.io.nio.RomioPixelBuffer.getTile(RomioPixelBuffer.java:834)
	at omeis.providers.re.data.PlaneFactory.createPlane(PlaneFactory.java:216)
	at omeis.providers.re.HSBStrategy.getWavelengthData(HSBStrategy.java:105)
	at omeis.providers.re.HSBStrategy.makeRenderingTasks(HSBStrategy.java:216)
	at omeis.providers.re.HSBStrategy.render(HSBStrategy.java:311)
	at omeis.providers.re.HSBStrategy.renderAsPackedInt(HSBStrategy.java:275)
	at omeis.providers.re.Renderer.renderAsPackedInt(Renderer.java:510)
	at ome.services.RenderingBean.renderAsPackedInt(RenderingBean.java:466)
	at ome.services.RenderingBean.renderCompressed(RenderingBean.java:515)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)

Change History (4)

comment:1 Changed 13 years ago by cblackburn

  • Remaining Time set to 1
  • Status changed from new to accepted

comment:2 Changed 13 years ago by wmoore

Test script:

import omero
from omero import client_wrapper
from omero.rtypes import *
from omero.util import script_utils
from omero.romio import *
from PIL import Image
import StringIO

user = 'root'
pw = 'omero'
host = 'localhost'

blitzcon = client_wrapper(user, pw, host=host, port=4064)
blitzcon.connect()

image = blitzcon.getObject("Image", 1)
pixelsId = image.getPrimaryPixels().id.val

re = blitzcon.createRenderingEngine()
re.lookupPixels(pixelsId)
re.lookupRenderingDef(pixelsId)
re.load()

planeDef = omero.romio.PlaneDef()

region = omero.romio.RegionDef()
region.x = 100
region.y = 100
region.width = 256
region.height = 256

#omero.romio.PlaneDef(omero.romio.XY)

planeDef.region = region
planeDef.z = long(9)
planeDef.t = long(0)

img = re.renderCompressed(planeDef)
im = Image.open(StringIO.StringIO(img))
im.show()

comment:3 Changed 13 years ago by Will Moore <will@…>

(In [3975a693e053a895a18076e832e33a34bdecba0c/ome.git] on branch develop) Adding support for render-region to ROI_Split_Figure.py. Not yet implemented on server. See #4265, #5069

comment:4 Changed 13 years ago by Colin Blackburn <C.Blackburn@…>

  • Remaining Time changed from 1 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

(In [1af7fa2deaba4e9ae79c07b2563bda2d4a1c7f7f/ome.git] on branch develop) Added implemented getHypercube and getTile methods in RomioPixelBuffer?. Closes #5069

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67948 sec.)

We're Hiring!