Example #1
0
def test_default_params(aorta_surface, compare_images):
    name = __name__ + '_test_default_params.mha'
    model = modeller.vmtkSurfaceModeller()
    model.Surface = aorta_surface
    model.Execute()

    assert compare_images(model.Image, name) == True
Example #2
0
def test_default_params(aorta_surface, compare_images):
    name = __name__ + '_test_default_params.mha'
    model = modeller.vmtkSurfaceModeller()
    model.Surface = aorta_surface
    model.Execute()

    assert compare_images(model.Image, name) == True
Example #3
0
def test_change_sample_spacing(aorta_surface, compare_images):
    name = __name__ + '_test_change_sample_spacing.mha'
    model = modeller.vmtkSurfaceModeller()
    model.Surface = aorta_surface
    model.SampleSpacing = -0.5
    model.Execute()

    assert compare_images(model.Image, name) == True
Example #4
0
def test_turn_off_negative_inside(aorta_surface, compare_images):
    name = __name__ + '_test_negative_inside.mha'
    model = modeller.vmtkSurfaceModeller()
    model.Surface = aorta_surface
    model.NegativeInside = 0
    model.Execute()

    assert compare_images(model.Image, name) == True
Example #5
0
def test_change_sample_spacing(aorta_surface, compare_images):
    name = __name__ + '_test_change_sample_spacing.mha'
    model = modeller.vmtkSurfaceModeller()
    model.Surface = aorta_surface
    model.SampleSpacing = -0.5
    model.Execute()
    
    assert compare_images(model.Image, name) == True
Example #6
0
def test_turn_off_negative_inside(aorta_surface, compare_images):
    name = __name__ + '_test_negative_inside.mha'
    model = modeller.vmtkSurfaceModeller()
    model.Surface = aorta_surface
    model.NegativeInside = 0
    model.Execute()

    assert compare_images(model.Image, name) == True