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

Add example for working with SRF and POI files #33

Open
ofgulban opened this issue Feb 17, 2023 · 1 comment
Open

Add example for working with SRF and POI files #33

ofgulban opened this issue Feb 17, 2023 · 1 comment

Comments

@ofgulban
Copy link
Owner

ofgulban commented Feb 17, 2023

It would be useful to have an showing how to work with SRF (triangular mesh surface) and POI (patches of interest) files.

Example can be based on this dataset: https://search.kg.ebrains.eu/instances/Dataset/ff71a4d1-ea14-4ed6-898e-b92d95b3c446

image
*image from https://github.com/ofgulban/cortical-auditory-atlas .

@ofgulban
Copy link
Owner Author

ofgulban commented Feb 17, 2023

Added an example script (with 68186d2 ), see: examples/read_srf_and_poi_export_obj.py script.

This script:

  1. reads an SRF and a POI file (they need to have matching number of vertices).
  2. Extracts the surface geometry from the SRF file.
  3. Extract patch information from the POI file.
  4. Exports these information into a wavefront obj file

Screenshots below are taken from BrainVoyager v 22.4.4 (left) and after the "SRF and POI to colored OBJ" conversion (taken from MeshLab v1.3.2, on the right)
SRF_POI_to_OBJ

Data used in this example is here:
example_data_SRF_POI.zip

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