Esempio n. 1
0
def test_default_smoothing(aorta_image, compare_images):
    name = __name__ + '_test_default_smoothing.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.Execute()

    assert compare_images(smoother.Image, name) == True
Esempio n. 2
0
def test_default_smoothing(aorta_image, compare_images):
    name = __name__ + '_test_default_smoothing.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.Execute()

    assert compare_images(smoother.Image, name) == True
Esempio n. 3
0
def test_lower_radius_factor(aorta_image, compare_images):
    name = __name__ + '_test_lower_radius_factor.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.RadiusFactor = 3.4
    smoother.Execute()

    assert compare_images(smoother.Image, name) == True
Esempio n. 4
0
def test_smoothing_high_standard_deviation(aorta_image, compare_images):
    name = __name__ + '_test_smoothing_high_standard_deviation.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.StandardDeviation = 7.6
    smoother.Execute()

    assert compare_images(smoother.Image, name) == True
Esempio n. 5
0
def test_lower_radius_factor(aorta_image, compare_images):
    name = __name__ + '_test_lower_radius_factor.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.RadiusFactor = 3.4
    smoother.Execute()

    assert compare_images(smoother.Image, name) == True
Esempio n. 6
0
def test_smoothing_high_standard_deviation(aorta_image, compare_images):
    name = __name__ + '_test_smoothing_high_standard_deviation.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.StandardDeviation = 7.6
    smoother.Execute()

    assert compare_images(smoother.Image, name) == True
Esempio n. 7
0
def test_anisotropic_smoothing_default_params(aorta_image, compare_images, write_image):
    name = __name__ + '_test_anisotropic_smoothing_default_params.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.Method = 'anisotropic'
    smoother.Execute()

    write_image(smoother.Image, name)
    assert compare_images(smoother.Image, name) == True
Esempio n. 8
0
def test_anisotropic_smoothing_default_params(aorta_image, compare_images,
                                              write_image):
    name = __name__ + '_test_anisotropic_smoothing_default_params.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.Method = 'anisotropic'
    smoother.Execute()

    write_image(smoother.Image, name)
    assert compare_images(smoother.Image, name) == True
Esempio n. 9
0
def test_anisotropic_smoother_varied_params(aorta_image, compare_images, 
                                            TimeStep, AutoCalculateTimeStep, Conductance, 
                                            NumberOfIterations, paramid, write_image):
    name = __name__ + '_test_anisotropic_smoother_varied_params_' + paramid + '.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.Method = 'anisotropic'
    smoother.TimeStep = TimeStep 
    smoother.AutoCalculateTimeStep = AutoCalculateTimeStep
    smoother.Conductance = Conductance
    smoother.NumberOfIterations = NumberOfIterations
    smoother.Execute()

    write_image(smoother.Image, name)
    assert compare_images(smoother.Image, name) == True
Esempio n. 10
0
def test_anisotropic_smoother_varied_params(aorta_image, compare_images,
                                            TimeStep, AutoCalculateTimeStep,
                                            Conductance, NumberOfIterations,
                                            paramid, write_image):
    name = __name__ + '_test_anisotropic_smoother_varied_params_' + paramid + '.mha'
    smoother = imagesmoothing.vmtkImageSmoothing()
    smoother.Image = aorta_image
    smoother.Method = 'anisotropic'
    smoother.TimeStep = TimeStep
    smoother.AutoCalculateTimeStep = AutoCalculateTimeStep
    smoother.Conductance = Conductance
    smoother.NumberOfIterations = NumberOfIterations
    smoother.Execute()

    write_image(smoother.Image, name)
    assert compare_images(smoother.Image, name) == True