NPL
Neurological Programs and Libraries
tracks.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2014 Micah C Chambers (micahc.vt@gmail.com)
3  *
4  * NPL is free software: you can redistribute it and/or modify it under the
5  * terms of the BSD 2-Clause License available in LICENSE or at
6  * http://opensource.org/licenses/BSD-2-Clause
7  *
8  * tracks.h Define track class
9  *****************************************************************************/
10 #ifndef TRACKS_H
11 #define TRACKS_H
12 
13 #include <iostream>
14 #include <vector>
15 #include <string>
16 #include <array>
17 
18 namespace npl {
19 
20 typedef std::vector<std::vector<std::array<float,3>>> TrackSet;
21 
33 TrackSet readTracks(std::string filename, std::string ref = "");
34 
44 TrackSet readDFT(std::string tfile, std::string ref = "");
45 
55 TrackSet readTrk(std::string filename, std::string ref = "");
56 
57 }
58 
59 #endif //TRACKS_H
Definition: accessors.h:29
TrackSet readTrk(std::string filename, std::string ref="")
Reads a trackvis trk file. Throws INVALID_ARGUMENT if the magic is wrong.
TrackSet readTracks(std::string filename, std::string ref="")
Reads tracks into a vector of tracks, where each track is a vector of float[3].
std::vector< std::vector< std::array< float, 3 > > > TrackSet
Definition: tracks.h:20
TrackSet readDFT(std::string tfile, std::string ref="")
Reads a BrainSuite DFT file. Throws INVALID_ARGUMENT if the magic is wrong.