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

Adding custom atlases to local installation #26

Open
alegiac95 opened this issue Mar 7, 2022 · 4 comments
Open

Adding custom atlases to local installation #26

alegiac95 opened this issue Mar 7, 2022 · 4 comments

Comments

@alegiac95
Copy link

Hi,
In our lab we are really keen on using your toolbox to plot some data we have using some custom parcellations. We have created all the files (i.e., the .ply files) for all our parcellations and would like to know how we can edit your code to use our parcellations for plotting, if this is at all possible.

Thanks in advance.

@razvanmarinescu
Copy link
Owner

Hi,

Yes, definitely! You need to create a new dictionary in the config file - it can be the identity mapping (in this case the columns' names in the .csv file will have to be the same as the .ply names). The ply files will then be loaded automatically. But note that the .ply models cannot all be centered in the origina ... they will need to be translated and rotated in the correct positions so as to create a cohesive brain.

You can try to run the brainpainter script interactively in Blender, but you cannot do this from the website or through docker. You need to locally install blender and then run the python script interactively in Blender. This will allow you to have an interactive 3D viewer of the brain and to test that it works.

@hajerkr
Copy link

hajerkr commented Sep 30, 2022

Hello @razvanmarinescu !

I am trying to do the same, using the Neuromorphometrics atlas, but I'm not sure how to get the .ply files. Is that something you can help with? It's a long shot but thought I would try anyway.

Thanks!

@razvanmarinescu
Copy link
Owner

@hajerkr you have to somehow convert your regions to .ply. There are some scripts and tools that can do that for various meshes, you'll have to search on google. @vmallela0 managed to convert segmentation masks to .ply, Vedu, how did you do it?

@razvanmarinescu
Copy link
Owner

I just googled and I found this repo It's a script that converts .obj to .ply. And .obj is a very generic, widely-used format. So you'll have to get your segmentation-masks/regions somehow to .obj format. You'll need a .obj for each region.

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