def test_visual_test():
    volume, volume_patch, seg_patch = patching_strategy(patching, (64, 64, 64))
    # plot_3_view("random_tumor_flair", volume[0, :, :, :], 100, save=save)
    plot_3_view("random_tumor_patch_flair",
                volume_patch[0, :, :, :],
                32,
                save=save)
    plot_3_view("random_tumor_path_seg", seg_patch[:, :, :], 32, save=save)
Пример #2
0
def test_assert_patch_shape():
    volume, volume_patch, seg_patch = patching_strategy(
        patching, (128, 128, 128))
    assert volume_patch.shape == (4, 128, 128, 128)
    assert seg_patch.shape == (128, 128, 128)
Пример #3
0
def test_assert_patch_shape():
    volume, volume_patch, seg_patch = patching_strategy(patching, (80, 80, 80))
    assert volume_patch.shape == (4, 80, 80, 80)
    assert seg_patch.shape == (80, 80, 80)
Пример #4
0
def test_visual_test():
    volume, volume_patch, seg_patch = patching_strategy(patching, (80, 80, 80))
    plot_3_view("equal_flair", volume[0, :, :, :], 100, save=save)
    plot_3_view("equal_patch_flair", volume_patch[0, :, :, :], 40, save=save)
    plot_3_view("equal_path_seg", seg_patch[:, :, :], 40, save=save)
def test_assert_patch_shape():
    volume, volume_patch, seg_patch = patching_strategy(patching, (32, 32, 16))
    assert volume_patch.shape == (4, 32, 32, 16)
    assert seg_patch.shape == (32, 32, 16)
def test_visual_test():
    volume, volume_patch, seg_patch = patching_strategy(
        patching, (160, 160, 128))
    plot_3_view("center_flair", volume[0, :, :, :], 100, save=save)
    plot_3_view("center_patch_flair", volume_patch[0, :, :, :], 100, save=save)
    plot_3_view("center_path_seg", seg_patch[:, :, :], 100, save=save)