Пример #1
0
def test_subtract_images(aorta_image, compare_images):
    name = __name__ + '_test_subtract_images.mha'
    composer = comp.vmtkImageCompose()
    composer.Operation = 'subtract'
    composer.Image = aorta_image
    composer.Image2 = aorta_image
    composer.Execute()

    assert compare_images(composer.Image, name) == True
Пример #2
0
def test_subtract_images(aorta_image, compare_images):
    name = __name__ + '_test_subtract_images.mha'
    composer = comp.vmtkImageCompose()
    composer.Operation = 'subtract'
    composer.Image = aorta_image
    composer.Image2 = aorta_image
    composer.Execute()

    assert compare_images(composer.Image, name) == True
Пример #3
0
def test_negate_image2_and_max(aorta_image, compare_images):
    name = __name__ + '_test_negate_image2_and_max.mha'
    composer = comp.vmtkImageCompose()
    composer.Operation = 'max'
    composer.NegateImage2 = True
    composer.Image = aorta_image
    composer.Image2 = aorta_image
    composer.Execute()

    assert compare_images(composer.Image, name) == True
Пример #4
0
def test_negate_image2_and_max(aorta_image, compare_images):
    name = __name__ + '_test_negate_image2_and_max.mha'
    composer = comp.vmtkImageCompose()
    composer.Operation = 'max'
    composer.NegateImage2 = True
    composer.Image = aorta_image
    composer.Image2 = aorta_image
    composer.Execute()

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