InsightSoftwareConsortium / InsightSoftwareConsortium/ITK

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

Open
#2,961 2 comments 0 reactions 0 assignees View on GitHub
area:Core area:Filtering type:Bug
Dominant language
C++
Stars
1.7k
Forks
748
Avg merge
1d 1h
Merged PRs (30d)
64

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.