forked from abduld/libwb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwbDataset.h
More file actions
52 lines (43 loc) · 985 Bytes
/
Copy pathwbDataset.h
File metadata and controls
52 lines (43 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef __WB_DATASET_H__
#define __WB_DATASET_H__
#include "wbImport.h"
#include "wbTypes.h"
typedef struct {
int rows;
int cols;
wbType_t type;
double minVal;
double maxVal;
} wbCSV_GenerateParams_t;
typedef struct {
int rows;
int cols;
wbType_t type;
double minVal;
double maxVal;
} wbTSV_GenerateParams_t;
typedef struct {
int rows;
int cols;
double minVal;
double maxVal;
wbType_t type;
} wbRaw_GenerateParams_t;
typedef struct {
int width;
int height;
int channels;
double minVal;
double maxVal;
} wbPPM_GenerateParams_t;
typedef struct { int length; } wbText_GenerateParams_t;
typedef union {
wbCSV_GenerateParams_t csv;
wbRaw_GenerateParams_t raw;
wbTSV_GenerateParams_t tsv;
wbPPM_GenerateParams_t ppm;
wbText_GenerateParams_t text;
} wbGenerateParams_t;
EXTERN_C void wbDataset_generate(const char *path, wbExportKind_t kind,
wbGenerateParams_t params);
#endif /* __WB_DATASET_H__ */