Skip to content

The Danielsson distance filter use pixel type of Offset<>, which does not have a specialized NumericTraits. #2961

Description

@blowekamp

Encountered an issue with the Image::GetNumberOfComponentsPerPixel method not reporting the correct number of components with the results from DanielssonDistanceMapImageFilter::VectorDistanceMap. The resulting image has pixel type Offset which is missing a specialized NumericTraits to get the correct Length.

While the usage of Offset for a pixel type appears to be rather unusual, the proposed fix is to add the additional specialization of NumericTraits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:CoreIssues affecting the Core modulearea:FilteringIssues affecting the Filtering moduletype:BugInconsistencies or issues which will cause an incorrect result under some or all circumstances

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions