EtienneCmb / visbrain

A multi-purpose GPU-accelerated open-source suite for brain data visualization
http://visbrain.org
Other
241 stars 64 forks source link

visbrain.utils.convert_meshdata doesn't seem to change mesh data values #78

Open jeschj01 opened 3 years ago

jeschj01 commented 3 years ago

I found 'Custom' as one of the online examples for building your own brain object. I wanted to see if I could convert the mesh data to MNI space. I think that's what convert_meshdata is supposed to do, but it doesn't appear to change the values.

code:


mat = np.load(op.join(oDrive, 'Custom.npz'))

vert, faces, norms = mat['vertices'], mat['faces'], mat['normals']
print(vert[0])
mv, mf, mn=visbrain.utils.convert_meshdata(vertices=vert, faces=faces, normals=norms)
print(mv[0])

Output:

[-0.0197168  -0.07383735  0.04496932]
[-0.0197168  -0.07383735  0.04496932]

If that's not the purpose of this function, could you please tell me how to convert the above mesh data to MNI?

Thank you,

Jay