Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export of speed image fails with exception #123

Open
a-a-danilov opened this issue Feb 14, 2024 · 0 comments
Open

Export of speed image fails with exception #123

a-a-danilov opened this issue Feb 14, 2024 · 0 comments

Comments

@a-a-danilov
Copy link
Contributor

When trying to save the speed image during active contour segmentation, the following errors pops up:
Error: exception occured during image IO. Exception: std::exception

The problem happens with recent Linux builds. At least versions 4.2.0-alpha.1 and 4.2.0-alpha.3 are affected.

The export works fine in previous stable version 4.0.2.

I traced the exception to template class CreateCastToTargetTypePipelinePartialSpecializationTraits with implementation which always throws exception (CreateCastToTargetTypePipelinePartialSpecializationTraits<itk::Image<short, 3u>, itk::Image<float, 3u>, SpeedImageInternalToNativeIntensityMapping, false, true>::CreatePipeline). It looks like the caller ImageWrapper<SpeedImageWrapperTraits>::CreateCastToFloatPipeline fails to select the correct template version of this class.

My guess is that IsLinear value is not computed correctly: it should be true for SpeedImage, not false.

pyushkevich added a commit that referenced this issue Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant