Skip to content

SITK_MAX_DIMENSIONS vs SimpleITK_MAX_DIMENSION compile options for SimpleElastix Transformix #2191

@kaftanski

Description

@kaftanski

When using the TransformixImageFilter from SimpleElastix to register 4D images, I get the issue

sitk::ERROR: TransformixImageFilter does not support the combination of image type short and dimension 4. This a serious error. Contact developers at https://github.com/kaspermarstal/SimpleElastix/issues.

The error is not fixed by setting SITK_MAX_DIMENSIONS=4 during compilation, which should allow for images of dimension 4 in the Transformix filter (https://github.com/SimpleITK/SimpleITK/blame/a62598f93867214a317fd9ea4d5acc11fac754c8/Code/ElastixTransformixWrappers/src/sitkTransformixImageFilterImpl.cxx#L128)

Is it intended to have this flag in addition to the SimpleITK_MAX_DIMENSION flag? I understand that SITK_MAX_DIMENSIONS was added as a response to #1891, but having these two flags is confusing to me.

I am using SimpleITK version 2.3rc1, built with SimpleElastix using the conda recipe (https://github.com/kaftanski/SimpleITKCondaRecipe-Elastix).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions