neurolabusc / surf-ice

GLSL surface rendering source code. Compiled versions available from NITRC. Loads 3DS, CTM, DXF, FreeSurfer, GII (GIfTI), GTS, LWO2, MS3D, MZ3, NV (BrainNetViewer), OBJ, OFF, PLY, STL, VTK. Tractography formats include BFloat, PDB, TCK, TRK, and VTK. Also NIfTI format voxelwise images.
https://www.nitrc.org/plugins/mwiki/index.php/surfice:MainPage
BSD 2-Clause "Simplified" License
100 stars 23 forks source link

.gii overview issue between CAT12 and surfice #40

Open iPsych opened 6 months ago

iPsych commented 6 months ago

Describe the bug The CAT12 extension provides .gii for 'save cluster' function.

Although Surfice can overlay the .gii files automatically generated during statistical analysis (i.e. beta_0001.gii), The clusterfile cause below error with proper vertex-numbered template (mesh.central.freesurfer.gii).

GIFTI overlay has a different number of vertices than the background mesh (1 vs 64984)

I tested with multiple dataset, but the results are always same.

Version Surf Ice 1.0.20211212j 64-bit x86-64 Cocoa LLVM StaticPythonBridge hw.model: MacBookPro16,2 Version 10.15.7 (Build 19H2026) www.mricro.com :: BSD 2-Clause License (opensource.org/licenses/BSD-2-Clause) PythonBridge Scale 85.4112 Origin 0.6221x-18.1058x15.9966 Mesh Vertices 64984 Faces 129960 Colors 0 -67.0710..68.3152 -103.5170..67.3054 -45.5490..77.5422 Track Vertices 0 Faces 0 Count 0 Node Vertices 0 Faces 0 GPU Intel Inc. :: OpenGL 4.1 INTEL-14.7.28 :: GLSL 4.10

To Reproduce Steps to reproduce the behavior: Save any cluster from CAT12 statistics. Open 'mesh.central.freesurfer.gii' Add overlay the cluster .gii file, generated.

neurolabusc commented 6 months ago

Can you send sample GIfTI images that reproduce the problem to my institutional email?