You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConvertSurface seems to flip the X and Y polarities when reading from/to the FreeSurfer (.asc), PLY (.ply) and byu (.g) formats. Since this is applied both on reading and writing, the round trip from GIFTI->other->GIFTI restores the coordinates. Notice that FreeSurfer uses the same coordinate system as GIFTI, so a FreeSurfer format mesh created by ConvertSurfaces appears flipped in the Anterior-Posterior and Left-Right dimensions (see screenshot). The -native switch does not seem to help.
FreeSurfer FreeView provides the reference display for FreeSurfer format images. The original (green) and converted (yellow) images are not aligned, but the converted back (red) perfectly aligns with the source:
The text was updated successfully, but these errors were encountered:
I took a look at this and tried similar examples. Interestingly, they all appear correct and nearly identical (except for some small rounding differences with ascii output) within the suma interface. What I think is going on is that almost all the surface reading functions assume LPI coordinate order, rather than RAI/DICOM order. It's mentioned in a couple places in some of the help output, but it's definitely not obvious. Based on that help, it seems that FreeSurfer used to output data in RAI order, but that has not been the case in recent years. Is this data, the l.surf.gii, a new GIFTI dataset?
In any case, there is a workaround, use the "-xmat_1D NegXY" option for ConvertSurface to negate X and Y coordinate values.
ConvertSurface seems to flip the X and Y polarities when reading from/to the FreeSurfer (.asc), PLY (.ply) and byu (.g) formats. Since this is applied both on reading and writing, the round trip from GIFTI->other->GIFTI restores the coordinates. Notice that FreeSurfer uses the same coordinate system as GIFTI, so a
FreeSurfer
format mesh created by ConvertSurfaces appears flipped in the Anterior-Posterior and Left-Right dimensions (see screenshot). The-native
switch does not seem to help.FreeSurfer FreeView provides the reference display for FreeSurfer format images. The original (green) and converted (yellow) images are not aligned, but the converted back (red) perfectly aligns with the source:
The text was updated successfully, but these errors were encountered: