-
Notifications
You must be signed in to change notification settings - Fork 3
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
Utility to fetch CSA headers from DICOM? #16
Comments
I guess that could be implemented as: CSAHeader.from_dcm(dcm, 'image') |
Absolutely, that would be fantastic. |
What repository should we use to hold the example DICOM files for testing? |
E.g. for Nipraxis : https://github.com/nipraxis/nipraxis-data |
I think it would be ideal if we could leverage multiple download URLs to integrate data from |
Yup - looks to be trivial using the |
I'll refactor the Nipraxis fetcher into its own mini-package. I've already refactored it so it uses a YaML config file to define its parameters. So we can probably just drop the package into |
Refactored code into https://github.com/matthew-brett/unscrewed . Will add mini data repository and example fetches from the DICOM gallery tomorrow. |
Nibabel has a
get_csa_header
function : https://github.com/nipy/nibabel/blob/master/nibabel/nicom/csareader.py#L31It implements the logic of finding the
image
orseries
CSA header from the DICOM file. I see from that file that there is logic for finding where the relevant private elements start: https://github.com/nipy/nibabel/blob/master/nibabel/nicom/utils.py#L7. . So, for example, instead of doing this:you can do this:
The text was updated successfully, but these errors were encountered: