MICA-MNI / ENIGMA

The ENIGMA Toolbox is an open-source repository for accessing 100+ ENIGMA statistical maps, visualizing cortical and subcortical surface data, and relating neuroimaging findings to micro- and macroscale brain organization. 🤠
https://enigma-toolbox.readthedocs.io
BSD 3-Clause "New" or "Revised" License
128 stars 31 forks source link

The interpolation method of surface mapping [how to change to nearest method] #23

Closed gourdchen closed 1 year ago

gourdchen commented 1 year ago

When I draw a atlas in enigmatoolbox, the color of parcellations' edge will be strange, as follows:

image

I guess it is due to the interpolation before the image rendering, but I can't find how to change the method in the code. I am not familar with the VTK, it seems a difficult task for me. So, would you please help me to solve this problem? Thank you!

saratheriver commented 1 year ago

You can convert your array to integer before array_name=my_array.astype(int)

gourdchen commented 1 year ago

Thanks for your kindly help!