Skip to content

BUG: Use ProcessObject GetInput to obtain base pointer#946

Merged
blowekamp merged 1 commit into
InsightSoftwareConsortium:masterfrom
blowekamp:FixImageSinkGenerateRRCasting
May 23, 2019
Merged

BUG: Use ProcessObject GetInput to obtain base pointer#946
blowekamp merged 1 commit into
InsightSoftwareConsortium:masterfrom
blowekamp:FixImageSinkGenerateRRCasting

Conversation

@blowekamp
Copy link
Copy Markdown
Member

In ImageSinc::GenerateNthInputRequestedRegion, use superclass'
GetInput method to obtain a pointer to a DataObject then a
dynamic_cast can be used to determine if the image region can be
generated. This addresses runtime "Unable to convert input" warnings.

closes #938.

Copy link
Copy Markdown
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

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

Looks like bug, judging by the (copy-pasted) comment above.

Comment thread Modules/Core/Common/include/itkImageSink.hxx Outdated
In ImageSinc::GenerateNthInputRequestedRegion, use superclass'
GetInput method to obtain a pointer to a DataObject then a
dynamic_cast can be used to determine if the image region can be
generated. This addresses runtime "Unable to convert input" warnings.
@blowekamp blowekamp force-pushed the FixImageSinkGenerateRRCasting branch from fc22a9e to b8aeae7 Compare May 22, 2019 15:54
@blowekamp blowekamp merged commit 32a81c9 into InsightSoftwareConsortium:master May 23, 2019
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 6, 2026
…ageSinkGenerateRRCasting

BUG: Use ProcessObject GetInput to obtain base pointer
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.

Runtime warnings after #855

3 participants