Recent Changes - Search:

Homepage

This is the old Camino website, please visit our new page to download the code and get the latest documentation.









UCL MIG Home

UCL CS Home

UCL Home

edit SideBar

Man /

Vtkstreamlines

Content-type: text/html Manpage of vtkstreamlines

vtkstreamlines

Section: User Commands (1)
Index Return to Main Contents

 

NAME

vtkstreamlines - Convert streamlines to VTK

 

SYNOPSIS

vtkstreamlines [options]

 

DESCRIPTION

Converts raw or voxel format streamlines to VTK polydata. These can be loaded into Paraview or other programs that read VTK data. Scalar data can be associated with the streamlines, this can be used to scale or colour the data within VTK.

The options for scalar data are:


  No scalars - the default.


  Colour by orientation - colour the streamline points by local orientation.


  Seed ROI - the scalar value for each point on the streamline is the ROI index of its seed point.


  target ROI - the scalar value for each point on the streamline is the index of the first target ROI 
   that it intersects. Each segment (either side of the seed) is treated separately, unless one segment
   intersects a target and the other does not, in which case the entire streamline has the scalar of the
   intersected target.


  Custom scalars - pass any Analyze image that is in the same physical space as the tracts. Each point
   of the streamline has the scalar value from the corresponding point in the image.

With the exception of orientation RGB encoding, the mapping of scalars to colours is handled by a VTK lookup table, which is provided at run time. Streamlines coloured by orientation have 24-bit RGB scalars, which are interpreted directly as colours.

Input data must be raw binary tracts (the output of track and procstreamlines). These tracts are described in the same physical space as the scalar image passed to this program.

 

EXAMPLES

Produce streamlines with no scalars.


  vtkstreamlines < streamlines.Bfloat > streamlines.vtk

Encode the local orientation of the streamline as an RGB colour scalar.


  vtkstreamlines -colourorient < streamlines.Bfloat > streamlines_rgborient.vtk

Use the ROI index of the seed point as the scalar. This produces one colour per seed ROI


  vtkstreamlines -seedfile seeds.nii < streamlines.Bfloat > streamlines_seed.vtk

Use the ROI index of the target as the scalar. This produces one colour per target ROI. Streamlines that do not intersect any target have zero scalars.


  vtkstreamlines -targetfile targets.nii < streamlines.Bfloat > streamlines_target.vtk

Use the local fractional anisotropy as the scalar for each point.


 vtkstreamlines -scalarfile fa.nii.gz < streamlines.Bfloat > streamlines_fa.vtk

 

OPTIONS

-colourorient
Each point on the streamline is coloured by the local orientation. The colour coding scheme is the same as described in pdview(1).

-scalarfile
An image that is in the same physical space as the tracts. Each point of the streamline has the scalar value from the corresponding point in the image.

-interpolatescalars, -interpolate
With this option, the scalar value at each point on the streamline is calculated by trilinear interpolation. By default, nearest-neighbour interpolation is used. Smoothness of the scalar values may be increased by using this option and by running the streamlines through procstreamlines with resampling enabled.

-seedfile
Seed ROI used to generate the tracts, as defined in track(1).

-targetfile
An image containing integer-valued target regions, as defined in track(1).

-voxeldims <x> <y> <z>
The x, y, and z dimension of each voxel, in millimetres. Not required if any image file is used or a header is passed with -header.

 

AUTHORS

Philip Cook <camino@cs.ucl.ac.uk>

 

SEE ALSO

track(1), procstreamlines(1), pdview(1)

 

CAVEATS


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
OPTIONS
AUTHORS
SEE ALSO
CAVEATS

This document was created by man2html, using the manual pages.
Time: 02:07:11 GMT, December 04, 2017

Edit - History - Print - Recent Changes - Search
Page last modified on October 26, 2009, at 03:09 PM