That’s right. The .trk files generated by AnatomiCuts have a color tag saved in a private location in the header, as I remember now. I think it is only effective when loaded as tract cluster. Are you going to write .trk files by yourself? If so I can point you to where to write the color bytes in the header.

On Jan 6, 2021, at 2:17 PM, Pietro Astolfi <pastolfi@fbk.eu> wrote:

        External Email - Use Caution        


Hi Ruopeng,

thanks for the reply. 
Actually, I’m not really interested in using AnatomiCuts, but since I tried it I wanted to signal the error. 
Concerning the embedded colors in FreeView, I was thinking they were value inserted as `data_per_streamlines` inside the .trk file, which is something possible. Also, by looking at the gif image of this tutorial of AnatomiCuts it seems the embedded colors are intrinsic of the tracts loaded as .trk.

Best,

Pietro

Pietro Astolfi
PhD student 
ICT school - University of Trento
NILab - Bruno Kessler Foundation
PAVIS - Italian Institute of Technology

Il giorno 06 gen 2021, alle ore 18:24, Wang, Ruopeng <RWANG4@MGH.HARVARD.EDU> ha scritto:

Hi Pietro,

I’m not familiar with AnatomiCuts so I can’t answer that part of your question. For visualizing tracts, freeview can load .trk files generated by TrackVis/DTK. They do not support embedded colors. It can also load tract volumes in 4D mgz format, which do support embedded colors.

Best,
Ruopeng

On Jan 5, 2021, at 6:32 PM, Pietro Astolfi <pastolfi@fbk.eu> wrote:

        External Email - Use Caution        


Hi,

In the last days I searched for documentation about the use of embedded colors when visualizing tracts in freeview. I wasn’ t able to find any information online. 

I also tried to obtain a tract containing the embdedd colors information by using `dmri_AnatomiCuts` (both with fs 7.1.0 on OS X and dev version on Ubuntu ), but despite many trials I always got the same runtime error:
terminating with uncaught exception of type std::runtime_error: Gak!
Abort trap: 6 

If anyone could help me it would be very appreciated,

Best,

Pietro

Pietro Astolfi
PhD student 
ICT school - University of Trento
NILab - Bruno Kessler Foundation
PAVIS - Italian Institute of Technology


--
Le informazioni contenute nella presente comunicazione sono di natura privata e come tali sono da considerarsi riservate ed indirizzate esclusivamente ai destinatari indicati e per le finalità strettamente legate al relativo contenuto. Se avete ricevuto questo messaggio per errore, vi preghiamo di eliminarlo e di inviare una comunicazione all’indirizzo e-mail del mittente.
--
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material.
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


--
Le informazioni contenute nella presente comunicazione sono di natura privata e come tali sono da considerarsi riservate ed indirizzate esclusivamente ai destinatari indicati e per le finalità strettamente legate al relativo contenuto. Se avete ricevuto questo messaggio per errore, vi preghiamo di eliminarlo e di inviare una comunicazione all’indirizzo e-mail del mittente.
--
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material.
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer