Skip to content

Comments

ENH: Improve dynamic casting with error handling in various filters#903

Open
axel-grc wants to merge 1 commit intoRTKConsortium:mainfrom
axel-grc:dynamiccast
Open

ENH: Improve dynamic casting with error handling in various filters#903
axel-grc wants to merge 1 commit intoRTKConsortium:mainfrom
axel-grc:dynamiccast

Conversation

@axel-grc
Copy link
Collaborator

Close #881

dynamic_cast<rtk::FDKWarpBackProjectionImageFilter<OutputImageType, OutputImageType, DeformationType> *>(
bp.GetPointer())
->SetDeformation(def);
auto * fdkWarp =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the proposed changes too systematic. Here, it is obvious that it won't fail, it's been instantiated with this type 2 lines above. Can you go over the changes and only check the ones for which it might not work?

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

Successfully merging this pull request may close these issues.

Check all dynamic_cast for 0 value to avoid segmentation faults

2 participants