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.
Encountered an issue with the
Image::GetNumberOfComponentsPerPixelmethod not reporting the correct number of components with the results fromDanielssonDistanceMapImageFilter::VectorDistanceMap. The resulting image has pixel typeOffsetwhich is missing a specializedNumericTraitsto 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.