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
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
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
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
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
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