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.

Changes between Initial Version and Version 1 of Ticket #11315


Ignore:
Timestamp:
07/29/13 12:52:25 (11 years ago)
Author:
wmoore
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11315 – Description

    initial v1  
    44 
    55Needs test and investigation. 
     6 
     7E.g. for an image similar to a FRAP DV image used in the PR above: 
     8 
     9{{{ 
     10# get 2x2 tile at x=0, y=0 
     11>>> p.getTile(0,0,0,tile=(0,0,2,2)) 
     12array([[30464, 30208], 
     13       [29952, 29952]], dtype=uint16) 
     14 
     15# getPlane and crop to top left 
     16>>> p.getPlane(0,0,0)[0:2, 0:2] 
     17array([[119, 118], 
     18       [117, 117]], dtype=uint16) 
     19 
     20# compare as strings (as used in gatewaytest/pixels.py) 
     21>>> plane2 = p.getPlane()[0:2, 0:2] 
     22>>> tile2 = p.getTile(0,0,0,tile=(0,0,2,2)) 
     23>>> str(plane2) 
     24'[[119 118]\n [117 117]]' 
     25>>> str(tile2) 
     26'[[30464 30208]\n [29952 29952]]' 
     27}}} 

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

We're Hiring!