InsightSoftwareConsortium / InsightSoftwareConsortium/ITK
The Danielsson distance filter use pixel type of Offset<>, which does not have a specialized NumericTraits.
Open
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
Assessment
This issue has not been assessed yet.