[Camino-users] resample fibers

Philip A Cook cookpa at mail.med.upenn.edu
Thu Aug 2 08:26:54 PDT 2012


Hi,

Currently you can downsample the fibers themselves with tractshredder, but there's no way to downsample the points on an individual fiber, other than tracking with a larger step size. 

The fiber format is fairly simple though. It is 32-bit float, big-endian, and contains one fiber after the other in the format

 [<N>, <seed point index>, <x_1>, <y_1>, <z_1>,...,<x_N>, <y_N>, <z_N>]

where N is the number of points. You can edit this freely, you would just need to keep track of N and the seed point index of the output track.

On Aug 2, 2012, at 7:56 AM, Peter Neher wrote:

> Dear all,
> 
> is it possible to resample the number of points on a fiber after the tracking process? The fibers are sampled way too high so that the conversion step to vtk needs too much memory and aborts. Probably every tenth fiber point would be enough.
> 
> Best
> Peter
> 
> -- 
> Dipl.-Inform. Peter Neher
> German Cancer Research Centre
> (DKFZ, Deutsches Krebsforschungszentrum in der Helmholtz-Gemeinschaft, Stiftung des öffentlichen Rechts)
> Division of Medical and Biological Informatics
> Im Neuenheimer Feld 280, D-69120 Heidelberg
> 
> Phone: 49-(0)6221-42-3552, Fax: 49-(0)6221-42-2345
> E-Mail: p.neher at dkfz-heidelberg.de, Web: www.dkfz.de
> 
> The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
> 
> _______________________________________________
> Camino-users mailing list
> Camino-users at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/camino-users



More information about the Camino-users mailing list