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 (closed)

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

Bug: Blitz getTile() wrong on FS

Reported by: wmoore Owned by: jamoore
Priority: blocker Milestone: 5.0.0-beta1
Component: Services Version: 5.0.0-beta1
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 (7)

comment:1 Changed 11 years ago by wmoore

  • Description modified (diff)

comment:2 Changed 11 years ago by wmoore

getTile() on FS in testGetTile() test gives

[[-24831 -25855...

whereas getPlane() on FS or getTile() on pre-FS:

[[415 411...

comment:3 Changed 11 years ago by wmoore

  • Owner changed from wmoore to jmoore
  • Priority changed from critical to blocker

PR on develop with failing gatewaytest/pixels.py testGetTile() https://github.com/openmicroscopy/openmicroscopy/pull/1359

comment:4 Changed 11 years ago by jamoore

  • Owner changed from jmoore to jamoore
  • Version set to 5.0.0-beta1

comment:5 Changed 11 years ago by jburel

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate see #10581

comment:6 Changed 10 years ago by Colin Blackburn <colin@…>

(In [6fd88bd8e793fcbe8b2c18041f706bfd9f9e17cc/ome.git] on branch develop) testGetTile() checks against getPlane(). See #11315

comment:7 Changed 10 years ago by Colin Blackburn <colin@…>

(In [8e04d1d0a47b23c77623c980fa7dc0c6028b7c3e/ome.git] on branch dev_4_4) testGetTile() checks against getPlane(). See #11315

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.70339 sec.)

We're Hiring!