Esempio n. 1
0
def test_binarize_default_parameters(aorta_image, compare_images):
    name = __name__ + '_test_binarize_default_parameters.mha'
    binarizer = binarize.vmtkImageBinarize()
    binarizer.Image = aorta_image
    binarizer.Execute()
    
    assert compare_images(binarizer.Image, name) == True
Esempio n. 2
0
def test_binarize_default_parameters(aorta_image, compare_images):
    name = __name__ + '_test_binarize_default_parameters.mha'
    binarizer = binarize.vmtkImageBinarize()
    binarizer.Image = aorta_image
    binarizer.Execute()
    
    assert compare_images(binarizer.Image, name) == True
Esempio n. 3
0
def test_binarize_simple_threshold(aorta_image, compare_images):
    name = __name__ + '_test_binarize_simple_threshold.mha'
    binarizer = binarize.vmtkImageBinarize()
    binarizer.Image = aorta_image
    binarizer.Threshold = 500
    binarizer.Execute()    

    assert compare_images(binarizer.Image, name) == True
Esempio n. 4
0
def test_binarize_simple_threshold(aorta_image, compare_images):
    name = __name__ + '_test_binarize_simple_threshold.mha'
    binarizer = binarize.vmtkImageBinarize()
    binarizer.Image = aorta_image
    binarizer.Threshold = 500
    binarizer.Execute()    

    assert compare_images(binarizer.Image, name) == True
Esempio n. 5
0
def test_binarize_modify_upper_label(aorta_image, compare_images):
    name = __name__ + '_test_binarize_modify_upper_label.mha'
    binarizer = binarize.vmtkImageBinarize()
    binarizer.Image = aorta_image
    binarizer.Threshold = 500
    binarizer.UpperLabel = 7
    binarizer.Execute()

    assert compare_images(binarizer.Image, name) == True
Esempio n. 6
0
def test_binarize_modify_upper_label(aorta_image, compare_images):
    name = __name__ + '_test_binarize_modify_upper_label.mha'
    binarizer = binarize.vmtkImageBinarize()
    binarizer.Image = aorta_image
    binarizer.Threshold = 500
    binarizer.UpperLabel = 7
    binarizer.Execute()

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