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

How ITK Snap gets the intensity at a particular co-ordinate from the MRI Scan, and which library does the ITK Snap to get intensity at a particular co-ordinate #117

Open
NiharJani2002 opened this issue Jan 12, 2024 · 5 comments

Comments

@NiharJani2002
Copy link

I am doing Brain Tumour Segmentation. I am analysing BRATS 2020 dataset. If I hover over a particular co-ordinate (let the co-ordinate be [x,y,z]) in MRI scan using ITK snap, I get a particular intensity value.

My Question is How to get that particular intensity in the Python code or c++ code ? Such that I can it.

If possible share the code also, or what algorithm does ITK Snap uses to show that particular intensity from MRI Scan

@NiharJani2002
Copy link
Author

I am using PyTorch, but I can move on to Tensorflow if its works well with Tensorflow

@liamtimms
Copy link

In case this wasn't clear, you can use ITK itself (python and c++) or simpleITK to get that behavior. ITK snap is a GUI built on ITK.

@NiharJani2002
Copy link
Author

Thanks @liamtimms , but I am using the ITK library in my code but still I am not getting the same intensity values when matched to ITK snap software. Can you pls guide me how to Get it?

@liamtimms
Copy link

@NiharJani2002 I am not associated with ITK or ITKsnap, but you can find information about accessing pixel values and interpolation in the ITK book: https://itk.org/ItkSoftwareGuide.pdf or use the simpler nibabel -> numpy in python by just indexing to the voxel of interest if you are less interested in spatial coordinate.

@pyushkevich
Copy link
Owner

pyushkevich commented Jul 19, 2024 via email

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

3 participants