Skip to content

Size of PixelType "long" platform dependent, causing confusion #1319

@N-Dekker

Description

@N-Dekker

The size of pixels specified by FixedInternalImagePixelType = "long", MovingInternalImagePixelType = "long", or ResultImagePixelType = "long" is platform dependent. On Windows, long is typically 32-bit (just like int), while on Linux, it is typically 64-bit (just like long long).

It would be clearer if elastix would support "int32" and "int64" to specify pixel types of 32 bits and 64 bits, respectively.

What do other libraries do?

Personally I would prefer to deprecate using "long" for the PixelType parameters of elastix.

Having said so, this may be a minor problem, because "long" is probably rarely used as PixelType.

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