示例#1
0
def test_image_str_shape_2d():
    pixels = np.ones((1, 10, 20))
    image = Image(pixels)
    assert(image._str_shape() == '20W x 10H')
示例#2
0
def test_image_str_shape_2d():
    pixels = np.ones((1, 10, 20))
    image = Image(pixels)
    assert image._str_shape() == "20W x 10H"
示例#3
0
def test_image_str_shape_4d():
    pixels = np.ones((1, 10, 20, 11, 12))
    image = Image(pixels)
    assert(image._str_shape() == '10 x 20 x 11 x 12')
示例#4
0
def test_image_str_shape_4d():
    pixels = np.ones((1, 10, 20, 11, 12))
    image = Image(pixels)
    assert image._str_shape() == "10 x 20 x 11 x 12"