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