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 #11315 (new)

Opened 11 years ago

Last modified 10 years ago

Bug: Blitz getTile() wrong on FS — at Version 1

Reported by: wmoore Owned by: wmoore
Priority: critical Milestone: 5.0.0-beta1
Component: Services Version: n.a.
Keywords: FS Cc: atarkowska, fs@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: FS demo 4.x

Description (last modified by wmoore)

Found as part of https://github.com/openmicroscopy/openmicroscopy/pull/1342

image.getPrimaryPixels().getTile() is giving unexpected pixel values (different from getPlane() for the same region).

Needs test and investigation.

E.g. for an image similar to a FRAP DV image used in the PR above:

# get 2x2 tile at x=0, y=0
>>> p.getTile(0,0,0,tile=(0,0,2,2))
array([[30464, 30208],
       [29952, 29952]], dtype=uint16)

# getPlane and crop to top left
>>> p.getPlane(0,0,0)[0:2, 0:2]
array([[119, 118],
       [117, 117]], dtype=uint16)

# compare as strings (as used in gatewaytest/pixels.py)
>>> plane2 = p.getPlane()[0:2, 0:2]
>>> tile2 = p.getTile(0,0,0,tile=(0,0,2,2))
>>> str(plane2)
'[[119 118]\n [117 117]]'
>>> str(tile2)
'[[30464 30208]\n [29952 29952]]'

Change History (1)

comment:1 Changed 11 years ago by wmoore

  • Description modified (diff)
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.79676 sec.)

We're Hiring!