Skip to content

get skull pixel data #229

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

Closed
NirutaDhimal opened this issue Sep 30, 2022 · 12 comments
Closed

get skull pixel data #229

NirutaDhimal opened this issue Sep 30, 2022 · 12 comments

Comments

@NirutaDhimal
Copy link

I am trying to mask everything outside skull region in brain. Is there a way I specify skull in the recipe without having to give the actual coordinates?

@vsoch
Copy link
Member

vsoch commented Sep 30, 2022

Are you using fMRI or nifti? If you are using dicom from brain imaging your best bet is to use more well established tools like FSL, SPM, or AFNI especially for masking. The tools here are primarily for other dicom like CT and ultrasound.

@vsoch
Copy link
Member

vsoch commented Sep 30, 2022

Take a look at BET in FSL as a good start.

@NirutaDhimal
Copy link
Author

Thank you. I am using dicom for brain imaging

@vsoch
Copy link
Member

vsoch commented Sep 30, 2022

Gotcha! So I’d check out those software suites and the nipy suite of tools. Most convert dicom to nifti and go from there.

@NirutaDhimal
Copy link
Author

NirutaDhimal commented Sep 30, 2022

Thanks. Is there a way to mask everything outside skull in deid module or to get the skull pixels or any pixels having certain value?

@vsoch
Copy link
Member

vsoch commented Sep 30, 2022

That’s what a tool like BET is for.

@NirutaDhimal
Copy link
Author

Got it. Thanks for the help

@NirutaDhimal
Copy link
Author

Can I ask you something? I may sound stupid. What are we anonymizing while cleaning pixel data? Are we just removing the annotations?

@vsoch
Copy link
Member

vsoch commented Sep 30, 2022

Yes exactly. For modality like CT and ultrasound patient personal information and metadata is often burned into the images, and the machines do it in predictable locations so we can erase it. That’s also more typical in a clinical context so the images have patient information. At least for brain imaging studies, if there are any burnt pixels (it’s been a long time but I don’t remember the post processed nifti having them) they would be removed in the analysis pipeline in an early step when you generate a brain mask.

If you are new to brain imaging the community is hugely active and vibrant and there are a ton of tools and methods for learning! Generally pydicom and deid are more catered toward clinical CT and ultrasound (and similar) that remain in dicom space and the communities overlap but I think it’s a bit smaller than neuroimaging primarily.

@NirutaDhimal
Copy link
Author

Thank you so much. It's really helpful and I am new to medical images.

@vsoch
Copy link
Member

vsoch commented Sep 30, 2022

Sure thing! Good luck and have fun. The tools are very good - most have both command line and GUI interfaces and pipelines (check out nipype for example) so you can script or click through multiple pipelines very easily. My biggest advice is to make sure to look at your data every step of the way, and (at least when I was learning) I liked to try something in a GUI first and then reproduce on the command line to run automated on many more subjects, usually on HPC.

@vsoch
Copy link
Member

vsoch commented Oct 1, 2022

Going to close this @NirutaDhimal - thanks for stopping by!

@vsoch vsoch closed this as completed Oct 1, 2022
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

No branches or pull requests

2 participants