1 / 5

Data Import / Export

Data Import / Export. Three Approaches. Converters Mesh and Data separately Teem For all your raster data needs MatlabInterface .mat files <-> SCIRun. Converters. Convert between human-editable text (e.g. CVRTI .pts, .dat files) and SCIRun Persistent objects

markcook
Télécharger la présentation

Data Import / Export

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Data Import / Export

  2. Three Approaches • Converters • Mesh and Data separately • Teem • For all your raster data needs • MatlabInterface • .mat files <-> SCIRun

  3. 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

  4. 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

  5. MatlabInterface

More Related