Skip to content

Commit

Permalink
Refs #112. experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
yxqd committed Aug 13, 2018
1 parent 1eb2382 commit af962b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/imars3d/tilt/test_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ def test_Calculator():

def test_computeTilt():
img0 = io.ImageFile(os.path.join(datadir, "cropped_000.000.tiff")).data
img0/=np.max(img0)
img180 = io.ImageFile(os.path.join(datadir, "cropped_180.000.tiff")).data
assert np.isclose( direct.computeTilt(img0, img180), 0.4 )
img180 /= np.max(img180)
from skimage import transform
r = transform.rotate(img180, 4.)
print direct.computeTilt(img0, img180)
print direct.computeTilt(img0, r)
# assert np.isclose( direct.computeTilt(img0, img180), 0.4 )
return

def test_shift():
Expand Down

0 comments on commit af962b6

Please sign in to comment.