-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
51 lines (35 loc) · 1.24 KB
/
Copy pathtest.cpp
File metadata and controls
51 lines (35 loc) · 1.24 KB
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
/**
CODIGO PARA VERIFICAR LOS RESULTADOS DE LAS ESTRUCTURAS
Compilacion:
g++ test.cpp src/dataset.cpp src/linear_algebra_functions.cpp src/utilities.cpp -o test `pkg-config opencv --cflags --libs` -mavx2 -O3
Ejecucion:
./test
*/
#include "inc/forest.hpp"
#define DATABASE_NAME "data/rgbd_dataset_freiburg11_desk"
// Esta base de datos tiene:
// -> 576 frames de sincronizados RGBD
// -> 2338 frames de groundtruth
int main(int argc, char const *argv[])
{
// Configuraciones
Settings *settings = new Settings(640, 480, 5000, 525.0f, 525.0f, 319.5f, 239.5f);
// Leyendo la Data
Dataset *data = new Dataset(DATABASE_NAME);
// 1er Test: Lectura de Datos --- DESARROLLO
cv::namedWindow("Display RGB",cv::WINDOW_AUTOSIZE);
cv::namedWindow("Display Depth",cv::WINDOW_AUTOSIZE);
std::cout << "Total number of Frames: " << data->getNumFrames() << std::endl;
for (int i = 0; i < data->getNumFrames(); ++i)
{
std::cout << data->getTimestamp(i) << " ";
cv::imshow("Display RGB",data->getRgbImage(i));
cv::imshow("Display Depth",data->getDepthImage(i));
Pose pose = data->getPose(i);
printMat44(pose, "pose");
printEigenVector3d( posePosition(pose) );
cv::waitKey(30);
}
// 2do Test: Entrenamiento de 1 arbol --- DESARROLLO
return 0;
}