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

Support multi-component images in image_from_vtk_image function #4142

Merged

Conversation

dzenanz
Copy link
Member

@dzenanz dzenanz commented Aug 7, 2023

I discovered this while working on Slicer/Slicer#7094.

PR Checklist

@dzenanz dzenanz added this to the ITK 5.4.0 milestone Aug 7, 2023
@dzenanz dzenanz requested a review from thewtex August 7, 2023 20:59
@github-actions github-actions bot added the area:Python wrapping Python bindings for a class label Aug 7, 2023
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

Can a test please be added?

Wrapping/Generators/Python/itk/support/extras.py Outdated Show resolved Hide resolved
Wrapping/Generators/Python/itk/support/extras.py Outdated Show resolved Hide resolved
dzenanz added a commit to dzenanz/Slicer that referenced this pull request Aug 8, 2023
dzenanz added a commit to KitwareMedical/SlicerITKUltrasound that referenced this pull request Aug 8, 2023
jcfr pushed a commit to dzenanz/Slicer that referenced this pull request Aug 8, 2023
@github-actions github-actions bot added the type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct label Aug 8, 2023
@dzenanz dzenanz requested a review from thewtex August 8, 2023 15:05
dzenanz added a commit to KitwareMedical/SlicerITKUltrasound that referenced this pull request Aug 8, 2023
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

💯 thank you @dzenanz !

@dzenanz dzenanz merged commit 336be62 into InsightSoftwareConsortium:master Aug 9, 2023
5 checks passed
@dzenanz dzenanz deleted the multiComponentVTK branch August 9, 2023 16:22
dims = dims[:-1] # 2D, not 3D
dims.reverse()
if is_vector:
dims.append(number_of_components)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
dims.append(number_of_components)
dims.append(number_of_components)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Python wrapping Python bindings for a class type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants