Example #1
0
def test_fromFile_subtracts_background():
  img_bg = image.fromFile(IMGFILE, IMGFILE)
  img = image.fromFile(IMGFILE)
  bg = image.fromFile(IMGFILE).toBackground()
Example #2
0
def test_images_should_equal():
  img = image.fromFile(IMGFILE)
  ok_(img==img)
Example #3
0
def test_images_shoud_not_equal():
  img = image.fromFile(IMGFILE)
  img2 = img.copy()
  img2._img[0,0,0] = 999999
  ok_(img!=img2)
Example #4
0
def test_fromFile_returns_stack():
  img = image.fromFile(IMGFILE)
  assert_is_instance(img, image.Stack)
Example #5
0
def test_fromFile_subtracts_background():
    img_bg = image.fromFile(IMGFILE, IMGFILE)
    img = image.fromFile(IMGFILE)
    bg = image.fromFile(IMGFILE).toBackground()
Example #6
0
def test_images_shoud_not_equal():
    img = image.fromFile(IMGFILE)
    img2 = img.copy()
    img2._img[0, 0, 0] = 999999
    ok_(img != img2)
Example #7
0
def test_images_should_equal():
    img = image.fromFile(IMGFILE)
    ok_(img == img)
Example #8
0
def test_fromFile_returns_stack():
    img = image.fromFile(IMGFILE)
    assert_is_instance(img, image.Stack)