pyushkevich/itksnap

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

Opened this issue · 5 comments

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

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

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.

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?

@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.