-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimeline.h
27 lines (22 loc) · 943 Bytes
/
Timeline.h
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
#pragma once
#include "box.h"
typedef struct {
int time;
int nx;
int ny;
int* data;
char timeStr[20];
} TimeHeatmapObservation;
typedef struct {
int nrObservations;
TimeHeatmapObservation** heatmaps;
} Timeline;
Timeline* TimelineCreateFromFile(char * filename, int n, box* b);
Timeline* TimelineCreateFromArray(int* array, int n, int nrFrames);
Timeline* TimelineCreateFromCumulativePositions(char * filename, char* tablename, int nColumns, int n, box* b);
Timeline* TimelineCreateFromWhenIJVal(box* b, char* filename, char* tablename, int n);
int TimelineIndex(Timeline* tl, int f, int nrTextureFrames);
float* TimelineBlur(Timeline* tl, int n, int nrTextureFrames, float bw2d, float bw1d, int cumulative);
void TimelineWriteToFile(char* filename, float* data3d, int n, int nrTextureFrames);
float* TimelineReadFromFile(char* filename, int n, int* nrTextureFrames);
void TimelineFree(Timeline* tl, int nrFrames);