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

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

Open
jeschj01 opened this issue Aug 14, 2020 · 0 comments
Open

Comments

@jeschj01
Copy link

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

@jeschj01 jeschj01 changed the title visbrain.utils.convert_meshdata doesn't seem to do anything visbrain.utils.convert_meshdata doesn't seem to change mesh data values Aug 14, 2020
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

1 participant