예제 #1
0
def test_snail_stitch2(image_files_6):

    order = [[2, 3, 4], [1, 0, 5]]

    stitched = cellomics.snail_stitch(image_files_6, order)
    expected = np.array([[2, 2, 3, 3, 4, 4], [2, 2, 3, 3, 4, 4],
                         [1, 1, 0, 0, 5, 5], [1, 1, 0, 0, 5, 5]])

    np.testing.assert_array_equal(stitched, expected)
예제 #2
0
def test_snail_stitch2(image_files_6):

    order = [[2, 3, 4],
             [1, 0, 5]]

    stitched = cellomics.snail_stitch(image_files_6, order)
    expected = np.array([[2, 2, 3, 3, 4, 4],
                         [2, 2, 3, 3, 4, 4],
                         [1, 1, 0, 0, 5, 5],
                         [1, 1, 0, 0, 5, 5]])

    np.testing.assert_array_equal(stitched, expected)
예제 #3
0
def test_snail_stitch(image_files_25):

    order = [[20, 21, 22, 23, 24], [19, 6, 7, 8, 9], [18, 5, 0, 1, 10],
             [17, 4, 3, 2, 11], [16, 15, 14, 13, 12]]

    stitched = cellomics.snail_stitch(image_files_25, order)
    expected = np.array([[20, 20, 21, 21, 22, 22, 23, 23, 24, 24],
                         [20, 20, 21, 21, 22, 22, 23, 23, 24, 24],
                         [19, 19, 6, 6, 7, 7, 8, 8, 9, 9],
                         [19, 19, 6, 6, 7, 7, 8, 8, 9, 9],
                         [18, 18, 5, 5, 0, 0, 1, 1, 10, 10],
                         [18, 18, 5, 5, 0, 0, 1, 1, 10, 10],
                         [17, 17, 4, 4, 3, 3, 2, 2, 11, 11],
                         [17, 17, 4, 4, 3, 3, 2, 2, 11, 11],
                         [16, 16, 15, 15, 14, 14, 13, 13, 12, 12],
                         [16, 16, 15, 15, 14, 14, 13, 13, 12, 12]])

    np.testing.assert_array_equal(stitched, expected)
예제 #4
0
def test_snail_stitch(image_files_25):

    order = [[20, 21, 22, 23, 24],
             [19, 6, 7, 8, 9],
             [18, 5, 0, 1, 10],
             [17, 4, 3, 2, 11],
             [16, 15, 14, 13, 12]]

    stitched = cellomics.snail_stitch(image_files_25, order)
    expected = np.array([[20, 20, 21, 21, 22, 22, 23, 23, 24, 24],
                         [20, 20, 21, 21, 22, 22, 23, 23, 24, 24],
                         [19, 19, 6, 6, 7, 7, 8, 8, 9, 9],
                         [19, 19, 6, 6, 7, 7, 8, 8, 9, 9],
                         [18, 18, 5, 5, 0, 0, 1, 1, 10, 10],
                         [18, 18, 5, 5, 0, 0, 1, 1, 10, 10],
                         [17, 17, 4, 4, 3, 3, 2, 2, 11, 11],
                         [17, 17, 4, 4, 3, 3, 2, 2, 11, 11],
                         [16, 16, 15, 15, 14, 14, 13, 13, 12, 12],
                         [16, 16, 15, 15, 14, 14, 13, 13, 12, 12]])

    np.testing.assert_array_equal(stitched, expected)