5
Import / Export NCRR Data Import / Export

Import / Export NCRR Data Import / Export. Import / Export NCRR Three Approaches Converters Mesh and Data separately Teem For all your raster data needs

Embed Size (px)

DESCRIPTION

Import / Export NCRR Converters Convert between human-editable text (e.g. CVRTI.pts,.dat files) and SCIRun Persistent objects See examples in SCIRunData/convert-examples/ Each converter gives you usage info if invoked without arguments: dmw stitch% TextToHexVolField Usage: TextToHexVolField pts hexes HexVolMesh [-noPtsCount] [-noElementsCount] [-oneBasedIndexing] [-binOutput] [debug] This program will read in a.pts (specifying the x/y/z coords of each point, one per line, entries separated by white space, file can have an optional one line header specifying number of points... and if it doesn't, you have to use the -noPtsCount command-line argument) and a.hex file (specifying i/j/k/l/m/n/o/p indices for each hex, also one per line, again with an optional one line header (use -noElementsCount if it's not there). The hex entries are assumed to be zero-based, unless you specify -oneBasedIndexing. And the SCIRun output file is written in ASCII, unless you specify -binOutput. Soon, plug-ins for Readers / Writers

Citation preview

Page 1: Import / Export NCRR Data Import / Export. Import / Export NCRR Three Approaches Converters Mesh and Data separately Teem For all your raster data needs

Import / Export

NCRR

Data Import / Export

Page 2: Import / Export NCRR Data Import / Export. Import / Export NCRR Three Approaches Converters Mesh and Data separately Teem For all your raster data needs

Import / Export

NCRR

Three Approaches

• Converters•Mesh and Data separately

• Teem• For all your raster data needs

• MatlabInterface• .mat files <-> SCIRun

Page 3: Import / Export NCRR Data Import / Export. Import / Export NCRR Three Approaches Converters Mesh and Data separately Teem For all your raster data needs

Import / Export

NCRR

Converters

• Convert between human-editable text (e.g. CVRTI .pts, .dat files) and SCIRun Persistent objects

• See examples in SCIRunData/convert-examples/• Each converter gives you usage info if invoked without

arguments: dmw stitch% TextToHexVolField

Usage: TextToHexVolField pts hexes HexVolMesh [-noPtsCount] [-noElementsCount] [-oneBasedIndexing] [-binOutput] [debug]

This program will read in a .pts (specifying the x/y/z coords of each point, one per line, entries separated by white space, file can have an optional one line header specifying number of points... and if it doesn't, you have to use the -noPtsCount command-line argument) and a .hex file (specifying i/j/k/l/m/n/o/p indices for each hex, also one per line, again with an optional one line header (use -noElementsCount if it's not there). The hex entries are assumed to be zero-based, unless you specify -oneBasedIndexing. And the SCIRun output file is written in ASCII, unless you specify -binOutput.

• Soon, plug-ins for Readers / Writers

Page 4: Import / Export NCRR Data Import / Export. Import / Export NCRR Three Approaches Converters Mesh and Data separately Teem For all your raster data needs

Import / Export

NCRR

Teem

• Make sure “unu” is in your path (it’s in /some/path/Thirdparty/…./bin/)

• For import:• unu make -h -i <input> -s <nx ny nz> …• NrrdReader module

• For export• NrrdWriter• unu data

Page 5: Import / Export NCRR Data Import / Export. Import / Export NCRR Three Approaches Converters Mesh and Data separately Teem For all your raster data needs

Import / Export

NCRR

MatlabInterface