NDDEM
io.h
Go to the documentation of this file.
1 
5 #include "TinyPngOut.hpp"
6 #ifdef NRRDIO
7 #ifndef NRRDIOINCLUDE
8 #define NRRDIOINCLUDE
9 #include "../NrrdIO-1.11.0-src/NrrdIO.h"
10 #endif
11 #endif
12 #include <string>
13 #include <vector>
14 
15 #ifndef TOOLS
16 #include "Tools.h"
17 #endif
18 
19 #include <fstream>
20 
21 using namespace std ;
22 
23 int write_colormap_vtk (int d, vector<vector<float>> & colors) ;
24 int write_NrrdIO (string path, int d, vector<vector<float>> & colors) ;
25 int write_img (char path[], int w, int h, uint8_t * px) ;
26 int csvread_A (const char path[], v2d &result, int d) ;
27 int csvread_XR (const char path[], v2d & result, v1d &R, int d) ;
28 void filepathname (char * path, int n, int time, cv1d View) ;
29 
30 // External function
31 extern void phi2color (vector<uint8_t>::iterator px, cv1d & phi, int d, vector<vector<float>> & colors) ;
32 
34 extern string DirectorySave ;
35 extern uint d ; extern int N ;
36 extern v2d Boundaries ;
37 
38 
vector< vector< double > > v2d
Definition: Typedefs.h:10
unsigned int uint
Definition: Typedefs.h:8
const vector< double > cv1d
Definition: Typedefs.h:13
vector< double > v1d
Definition: Typedefs.h:9
int csvread_A(const char path[], v2d &result, int d)
Reader for CSV orientation informations.
Definition: io.cpp:21
v1d thetagrid
Definition: io.h:33
uint d
int csvread_XR(const char path[], v2d &result, v1d &R, int d)
Reader for CSV location informations.
Definition: io.cpp:48
v1d lambdagrid
int N
void phi2color(vector< uint8_t >::iterator px, cv1d &phi, int d, vector< vector< float >> &colors)
Convert from hyperspherical coordinates to actual pixel color, using the provided vector of colors.
Definition: Texturing.cpp:18
int write_colormap_vtk(int d, vector< vector< float >> &colors)
Writer for VTK colormaps.
Definition: io.cpp:77
string DirectorySave
v2d Boundaries
int write_img(char path[], int w, int h, uint8_t *px)
Write for png textures.
Definition: io.cpp:6
int write_NrrdIO(string path, int d, vector< vector< float >> &colors)
Writer for NRRD colormaps.
Definition: io.cpp:116
void filepathname(char *path, int n, int time, cv1d View)
Filename generator.
Definition: json.hpp:5678
unsigned char uint8_t
Definition: stdint.h:124