Skip to content

unexpected keyword argument in procedural InvertDisplacementField #2425

Description

@zivy

Following code works with SimpleITK version 2.5.2 but generates the following error in 3.0.0 TypeError: InvertDisplacementField() got an unexpected keyword argument 'maximumNumberOfIterations'

import SimpleITK as sitk

displacement_image = sitk.Image([512, 512], sitk.sitkVectorFloat64, 2)
sitk.InvertDisplacementField(
    displacement_image,
    maximumNumberOfIterations=20,
    maxErrorToleranceThreshold=0.01,
    meanErrorToleranceThreshold=0.0001,
    enforceBoundaryCondition=True,
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions