-
Notifications
You must be signed in to change notification settings - Fork 13
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 channeled dicom slices #16
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9b29a87
Refactored _merge_slice_pixel_arrays to support channelled slices, e.…
jond01 cb0d926
Merge remote-tracking branch 'innolitics/master' into issues11+12_fix
jond01 1ab1954
Added SamplesPerPixel to invariant_properties and MockSlice
jond01 7cc1961
Added test for combining RGB dicom slices
jond01 899d277
Fixed Rows <-> Columns from pixel_array shape (tests)
jond01 6a8b0b4
Merge branch 'master' of https://github.com/innolitics/dicom-numpy
jond01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't have a chance to read through this in detail until later, but two comments:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW thanks for making a PR for this---it will definitely make dicom-numpy more useful and generic!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My pleasure :)
Rows
,Columns
,BitsStored
- the attributeSamplesPerPixel
is necessary for calculatingpixel_array
(and its shape) fromPixelData
. If there are some slices with different shape, they cannot be combined.The current error will be something related to numpy's incompatible shapes.
In order to avoid it, maybe we should add
SamplesPerPixel
to theinvariant_properties
list? (in_validate_slices_form_uniform_grid
)