a little more documentation
Tim Coalson
9 years ago
43 | 43 |
|
44 | 44 |
namespace cifti
|
45 | 45 |
{
|
|
46 |
///class for retrieving and setting mapping information of cifti files
|
46 | 47 |
class CiftiXML
|
47 | 48 |
{
|
48 | 49 |
public:
|
13 | 13 |
#build
|
14 | 14 |
make
|
15 | 15 |
|
|
16 |
The resulting static libraries and example executable will be in subdirectories of the build directory, not in the source directory.
|
|
17 |
|
16 | 18 |
Troubleshooting:
|
17 | 19 |
|
18 | 20 |
If you are using manually-installed libraries rather than distribution-packaged libraries, you may need to use the cmake variables CMAKE_LIBRARY_PATH and CMAKE_INCLUDE_PATH.
|
27 | 27 |
//inputFile.convertToInMemory();//if you want to read it into memory first
|
28 | 28 |
CiftiFile outputFile;
|
29 | 29 |
outputFile.setWritingFile(argv[2]);//sets up on-disk writing with default writing version, from CiftiVersion's default constructor
|
30 | |
outputFile.setCiftiXML(inputFile.getCiftiXML());
|
|
30 |
outputFile.setCiftiXML(inputFile.getCiftiXML());//the CiftiXML is how you access all the mapping information
|
31 | 31 |
const vector<int64_t>& dims = inputFile.getDimensions();
|
32 | 32 |
vector<float> scratchRow(dims[0]);//read/write a row at a time
|
33 | 33 |
for (MultiDimIterator<int64_t> iter(vector<int64_t>(dims.begin() + 1, dims.end())); !iter.atEnd(); ++iter)
|